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:

functions.php
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.

  1. LiteSpeed Cache icon LiteSpeed Cache7+ million installs do_action( 'litespeed_purge', self::CACHETAG_GALLERIES . $image->galleryid ) thirdparty/nextgengallery.cls.php:59
  2. Converter for Media icon Converter for Media500,000+ installs do_action( 'litespeed_purge', '*' ) src/Service/CacheIntegrator.php:61
  3. Smash Balloon Social Post Feed icon Smash Balloon Social Post Feed100,000+ installs do_action( 'litespeed_purge', 'esi.custom-facebook-feed' ) inc/CFF_Cache.php:512
  4. Custom Twitter Feeds icon Custom Twitter Feeds100,000+ installs do_action( 'litespeed_purge', 'esi.custom-twitter-feeds' ) custom-twitter-feed.php:1142
  5. Ninja Tables icon Ninja Tables70,000+ installs do_action( 'litespeed_purge', 'ninja_tables_light_speed_clear_cache' ) app/Support/TableCache.php:120
  6. WP Social Ninja icon WP Social Ninja30,000+ installs do_action( 'litespeed_purge', 'wpsn_purge_'.$platform ) app/Services/Platforms/Feeds/CacheHandler.php:194
  7. Agent Abilities for MCP icon Agent Abilities for MCP1,000+ installs do_action( 'litespeed_purge', 'T.' . $term->term_id ) includes/review-origin.php:192
  8. Comments icon Comments400+ installs do_action( 'litespeed_purge', '*' ) graphcomment.php:843
  9. Bit Connect icon Bit Connect100+ installs do_action( 'litespeed_purge', self::TAG ) backend/app/Services/PageCache.php:303
  10. Verowa Connect icon Verowa Connect100+ installs do_action( 'litespeed_purge', $str_single_tag ) includes/cache/class-litespeed-cache.php:92
  11. SiteFort Security icon SiteFort Security100+ installs do_action( 'litespeed_purge', \LiteSpeed\API::TYPE_LOGIN ) modules/Login/Login.php:1238
  12. PetPress icon PetPress70+ installs do_action( 'litespeed_purge', self::LITESPEED_TAG ) pp-CachePurge.php:54
  13. Tapdock icon Tapdock70+ installs do_action( 'litespeed_purge', '*' ) includes/Classes/CachePurge.php:41
  14. WP Blast icon WP Blast20+ installs do_action( 'litespeed_purge', 'wpblast_crawler' ) inc/third-party/litespeed-cache/litespeed-cache-functions.php:77
  15. CYBERMAPS: XML Sitemaps & llms.txt icon CYBERMAPS: XML Sitemaps & llms.txt20+ installs do_action( 'litespeed_purge', $tag ) src/Integration/EdgeCache/LiteSpeedAdapter.php:105
  16. MyFeeds icon MyFeeds10+ installs do_action( 'litespeed_purge', 'Po.' . (int) $id ) includes/class-page-cache-purge.php:302
  17. Daily Tarot icon Daily Tarot10+ installs do_action( 'litespeed_purge', 'url ' . $url ) includes/Support/CachePurge.php:172
  18. ProRank SEO icon ProRank SEO10+ installs do_action( 'litespeed_purge', $url ) includes/Plugin.php:513
  19. tip.BOX icon tip.BOX10+ installs do_action( 'litespeed_purge', '*' ) src/Service/CacheIntegrator.php:65
  20. IndiaTVDNA Turbo Cache icon IndiaTVDNA Turbo CacheFewer than 10 installs do_action( 'litespeed_purge', array_values(array_unique($tags)) ) includes/class-itdna-litespeed-integration.php:395
  21. AOO Shop icon AOO ShopFewer than 10 installs do_action( 'litespeed_purge', self::LS_TAG ) includes/class-host-cache.php:169
  22. Performance Optimisation icon Performance OptimisationFewer than 10 installs do_action( 'litespeed_purge', $tags ) includes/Integrations/class-litespeed-integration.php:831
  23. Nucleo icon NucleoFewer than 10 installs do_action( 'litespeed_purge', 'nucleo-post-' . $id ) src/Compiler/CachePurger.php:24
  24. KUROFUNE LINK icon KUROFUNE LINKFewer than 10 installs do_action( 'litespeed_purge', '*' ) includes/class-kurofune-link-cache.php:509
  25. Yatoon Social Feed icon Yatoon Social FeedFewer than 10 installs do_action( 'litespeed_purge', self::TAG ) includes/class-cache.php:21
  26. Amitry Job Board icon Amitry Job BoardFewer than 10 installs do_action( 'litespeed_purge', self::TAG ) includes/class-amjobs-cache.php:253
  27. Blinkimg Image Optimizer: Convert to WebP & AVIF, Compress Images, Same Quality icon 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
  28. EstudoBiblico Bíblia Digital icon EstudoBiblico Bíblia DigitalFewer than 10 installs do_action( 'litespeed_purge', $tags ) includes/class-bdwp70-plugin.php:841
  29. Swirv icon SwirvFewer than 10 installs do_action( 'litespeed_purge', 'swirv' ) includes/RedirectCache.php:239
  30. BrikFront Page Builder for WooCommerce: Wishlist, Quick View, Variation Swatches & Side Cart icon 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
  31. Linkmora icon LinkmoraFewer than 10 installs do_action( 'litespeed_purge', 'linkmora' ) includes/class-linkmora-cache.php:77
  32. SoloAutomation icon SoloAutomationFewer than 10 installs do_action( 'litespeed_purge', '*' ) includes/services/class-soloautomation-media-cache.php:171
  33. Cliedesk icon CliedeskFewer than 10 installs do_action( 'litespeed_purge', $tag ) src/Infrastructure/Http/NoCache.php:133
  34. Scoreleaf icon 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.