WordPress action hook
litespeed_purge
Fired by 34 WordPress plugins, running on 7.8M+ sites between them.
How to use litespeed_purge
It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'litespeed_purge', function( $tag ) {
// Your code runs here.
}, 10, 1 );Argument names come from CYBERMAPS: XML Sitemaps & llms.txt's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
34 plugins that fire litespeed_purge
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
LiteSpeed Cache7+ million installs
do_action( 'litespeed_purge', self::CACHETAG_GALLERIES . $image->galleryid )thirdparty/nextgengallery.cls.php:59 -
Converter for Media500,000+ installs
do_action( 'litespeed_purge', '*' )src/Service/CacheIntegrator.php:61 -
Smash Balloon Social Post Feed100,000+ installs
do_action( 'litespeed_purge', 'esi.custom-facebook-feed' )inc/CFF_Cache.php:512 -
Custom Twitter Feeds100,000+ installs
do_action( 'litespeed_purge', 'esi.custom-twitter-feeds' )custom-twitter-feed.php:1142 -
Ninja Tables70,000+ installs
do_action( 'litespeed_purge', 'ninja_tables_light_speed_clear_cache' )app/Support/TableCache.php:120 -
WP Social Ninja30,000+ installs
do_action( 'litespeed_purge', 'wpsn_purge_'.$platform )app/Services/Platforms/Feeds/CacheHandler.php:194 -
Agent Abilities for MCP1,000+ installs
do_action( 'litespeed_purge', 'T.' . $term->term_id )includes/review-origin.php:192 -
Comments400+ installs
do_action( 'litespeed_purge', '*' )graphcomment.php:843 -
Bit Connect100+ installs
do_action( 'litespeed_purge', self::TAG )backend/app/Services/PageCache.php:303 -
Verowa Connect100+ installs
do_action( 'litespeed_purge', $str_single_tag )includes/cache/class-litespeed-cache.php:92 -
SiteFort Security100+ installs
do_action( 'litespeed_purge', \LiteSpeed\API::TYPE_LOGIN )modules/Login/Login.php:1238 -
PetPress70+ installs
do_action( 'litespeed_purge', self::LITESPEED_TAG )pp-CachePurge.php:54 -
Tapdock70+ installs
do_action( 'litespeed_purge', '*' )includes/Classes/CachePurge.php:41 -
WP Blast20+ installs
do_action( 'litespeed_purge', 'wpblast_crawler' )inc/third-party/litespeed-cache/litespeed-cache-functions.php:77 -
CYBERMAPS: XML Sitemaps & llms.txt20+ installs
do_action( 'litespeed_purge', $tag )src/Integration/EdgeCache/LiteSpeedAdapter.php:105 -
MyFeeds10+ installs
do_action( 'litespeed_purge', 'Po.' . (int) $id )includes/class-page-cache-purge.php:302 -
Daily Tarot10+ installs
do_action( 'litespeed_purge', 'url ' . $url )includes/Support/CachePurge.php:172 -
ProRank SEO10+ installs
do_action( 'litespeed_purge', $url )includes/Plugin.php:513 -
tip.BOX10+ installs
do_action( 'litespeed_purge', '*' )src/Service/CacheIntegrator.php:65 -
IndiaTVDNA Turbo CacheFewer than 10 installs
do_action( 'litespeed_purge', array_values(array_unique($tags)) )includes/class-itdna-litespeed-integration.php:395 -
AOO ShopFewer than 10 installs
do_action( 'litespeed_purge', self::LS_TAG )includes/class-host-cache.php:169 -
Performance OptimisationFewer than 10 installs
do_action( 'litespeed_purge', $tags )includes/Integrations/class-litespeed-integration.php:831 -
NucleoFewer than 10 installs
do_action( 'litespeed_purge', 'nucleo-post-' . $id )src/Compiler/CachePurger.php:24 -
KUROFUNE LINKFewer than 10 installs
do_action( 'litespeed_purge', '*' )includes/class-kurofune-link-cache.php:509 -
Yatoon Social FeedFewer than 10 installs
do_action( 'litespeed_purge', self::TAG )includes/class-cache.php:21 -
Amitry Job BoardFewer than 10 installs
do_action( 'litespeed_purge', self::TAG )includes/class-amjobs-cache.php:253 -
Blinkimg Image Optimizer: Convert to WebP & AVIF, Compress Images, Same QualityFewer than 10 installs
do_action( 'litespeed_purge', '*' )includes/delivery/class-page-caches.php:247 -
EstudoBiblico Bíblia DigitalFewer than 10 installs
do_action( 'litespeed_purge', $tags )includes/class-bdwp70-plugin.php:841 -
SwirvFewer than 10 installs
do_action( 'litespeed_purge', 'swirv' )includes/RedirectCache.php:239 -
BrikFront Page Builder for WooCommerce: Wishlist, Quick View, Variation Swatches & Side CartFewer than 10 installs
do_action( 'litespeed_purge', '*' )includes/demos/class-cache.php:108 -
LinkmoraFewer than 10 installs
do_action( 'litespeed_purge', 'linkmora' )includes/class-linkmora-cache.php:77 -
SoloAutomationFewer than 10 installs
do_action( 'litespeed_purge', '*' )includes/services/class-soloautomation-media-cache.php:171 -
CliedeskFewer than 10 installs
do_action( 'litespeed_purge', $tag )src/Infrastructure/Http/NoCache.php:133 -
ScoreleafFewer than 10 installs
do_action( 'litespeed_purge', 'REST' )includes/Install.php:45
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.