WordPress action hook

cache_enabler_clear_page_cache_by_post

Fired by 27 WordPress plugins, running on 151K+ sites between them.

How to use cache_enabler_clear_page_cache_by_post

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( 'cache_enabler_clear_page_cache_by_post', function( $post_id ) {
	// Your code runs here.
}, 10, 1 );

Argument names come from SureCart's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

27 plugins that fire cache_enabler_clear_page_cache_by_post

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. SureCart icon SureCart70,000+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) app/src/WordPress/Cache/CacheEnablerCacheService.php:45
  2. WP ULike icon WP ULike60,000+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) includes/classes/class-wp-ulike-purge-cache.php:390
  3. Secure MCP Server for Claude, ChatGPT, Gemini, Cursor and other AI Agents icon Secure MCP Server for Claude, ChatGPT, Gemini, Cursor and other AI Agents10,000+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $id ) libraries/abilities/src/support/class-cache-purger.php:684
  4. Themify Builder icon Themify Builder6,000+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) themify/cache/class-themify-cache.php:914
  5. Display Eventbrite Events icon Display Eventbrite Events2,000+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) includes/class-utilities.php:234
  6. LinkBoss icon LinkBoss2,000+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) includes/Classes/class-update-posts.php:261
  7. RankReady icon RankReady600+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) includes/class-rnrd-cache.php:596
  8. MEGA AI icon MEGA AI200+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) page-cache-purge.php:136
  9. AlphaBridge MCP icon AlphaBridge MCP100+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $id ) includes/class-page-cache.php:213
  10. Rectus Content Access for MCP icon Rectus Content Access for MCP30+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) includes/cache-purge.php:105
  11. SEO & AI Readiness Check icon SEO & AI Readiness Check30+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) pruefbericht-seo-quick-check.php:760
  12. DadsFam SEO icon DadsFam SEO20+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $id ) includes/class-dfseo-brain.php:6339
  13. Gulo Link-in-Bio icon Gulo Link-in-Bio10+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $page_id ) includes/class-guloli-admin.php:577
  14. Cache Watch icon Cache Watch10+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $id ) includes/integrations/class-fcb-cache-watch-plugins.php:208
  15. MyClub Groups icon MyClub Groups10+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) lib/myclub/common-lib/src/BaseUtils.php:89
  16. TSO Link Inspector icon TSO Link Inspector10+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) includes/class-tso-lc-scanner.php:7572
  17. BahriCanli Publisher icon BahriCanli Publisher10+ installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) bahricanli-publisher.php:160
  18. Sidcraft Page Builder w/ AI MCP icon Sidcraft Page Builder w/ AI MCPFewer than 10 installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) includes/compatibility/class-cache.php:87
  19. RATA icon RATAFewer than 10 installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) includes/class-rata-tts-generator.php:1174
  20. MyClub Booking icon MyClub BookingFewer than 10 installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) lib/myclub/common-lib/src/BaseUtils.php:89
  21. WeDispatch Audio Text to Speech icon WeDispatch Audio Text to SpeechFewer than 10 installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) inc/cache.php:104
  22. LinkRevive AI icon LinkRevive AIFewer than 10 installs do_action( 'cache_enabler_clear_page_cache_by_post', $id ) src/Fix/CachePurge.php:167
  23. WPInterface Product Reviews for WooCommerce icon WPInterface Product Reviews for WooCommerceFewer than 10 installs do_action( 'cache_enabler_clear_page_cache_by_post', $id ) src/Core/PageCache.php:45
  24. Krystian Gacek Image Format Converter icon Krystian Gacek Image Format ConverterFewer than 10 installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) src/Compatibility/CachePurger.php:49
  25. Digispot AI icon Digispot AIFewer than 10 installs do_action( 'cache_enabler_clear_page_cache_by_post', $id ) includes/compat/class-cache-purger.php:466
  26. RapidWombat Integration icon RapidWombat IntegrationFewer than 10 installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) includes/cache.php:104
  27. MyClub Sections icon MyClub SectionsFewer than 10 installs do_action( 'cache_enabler_clear_page_cache_by_post', $post_id ) lib/myclub/common-lib/src/BaseUtils.php:89

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.