WordPress action hook

cachify_flush_cache

Fired by 40 WordPress plugins, running on 1.5M+ sites between them.

How to use cachify_flush_cache

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

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

40 plugins that fire cachify_flush_cache

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

  1. Autoptimize icon Autoptimize800,000+ installs do_action( 'cachify_flush_cache' ) classes/autoptimizeCache.php:785
  2. CMP icon CMP200,000+ installs do_action( 'cachify_flush_cache' ) niteo-cmp.php:2792
  3. Statify icon Statify100,000+ installs do_action( 'cachify_flush_cache' ) inc/class-statify-settings.php:401
  4. Disable Admin Notices icon Disable Admin Notices100,000+ installs do_action( 'cachify_flush_cache' ) libs/factory/templates/includes/class-helpers.php:233
  5. Robin Image Optimizer icon Robin Image Optimizer100,000+ installs do_action( 'cachify_flush_cache' ) includes/functions.php:1405
  6. Woody Code Snippets icon Woody Code Snippets50,000+ installs do_action( 'cachify_flush_cache' ) includes/class.helpers.php:704
  7. Clearfy Cache icon Clearfy Cache40,000+ installs do_action( 'cachify_flush_cache' ) components/disable-admin-notices/libs/factory/templates/includes/class-helpers.php:233
  8. Cyrlitera icon Cyrlitera40,000+ installs do_action( 'cachify_flush_cache' ) libs/factory/templates/includes/class-helpers.php:233
  9. Slim Maintenance Mode icon Slim Maintenance Mode10,000+ installs do_action( 'cachify_flush_cache' ) slim-maintenance-mode.php:37
  10. Social Slider Feed icon Social Slider Feed10,000+ installs do_action( 'cachify_flush_cache' ) libs/factory/templates/includes/class-helpers.php:233
  11. Professional Social Sharing Buttons, Icons & Related Posts icon Professional Social Sharing Buttons, Icons & Related Posts10,000+ installs do_action( 'cachify_flush_cache' ) utilities.php:1541
  12. Disable Comments & Delete All Comments icon Disable Comments & Delete All Comments9,000+ installs do_action( 'cachify_flush_cache' ) libs/factory/templates/includes/class-helpers.php:233
  13. Disable Updates icon Disable Updates8,000+ installs do_action( 'cachify_flush_cache' ) libs/factory/templates/includes/class-helpers.php:233
  14. Themify Builder icon Themify Builder6,000+ installs do_action( 'cachify_flush_cache' ) themify/cache/class-themify-cache.php:934
  15. Vigilant icon Vigilant4,000+ installs do_action( 'cachify_flush_cache' ) includes/class-under-attack.php:924
  16. WP Delicious icon WP Delicious4,000+ installs do_action( 'cachify_flush_cache' ) src/Functions/HelperFunctions.php:407
  17. FAZ Cookie Manager icon FAZ Cookie Manager3,000+ installs do_action( 'cachify_flush_cache' ) admin/modules/cache/services/class-cachify.php:59
  18. Local Google Analytics for WordPress icon Local Google Analytics for WordPress3,000+ installs do_action( 'cachify_flush_cache' ) libs/factory/templates/includes/class-helpers.php:233
  19. ConveyThis AI Multilingual Translation icon ConveyThis AI Multilingual Translation1,000+ installs do_action( 'cachify_flush_cache', $page_id ) app/class/ConveyThisCache.php:74
  20. Assets manager, dequeue scripts, dequeue styles for WordPress icon Assets manager, dequeue scripts, dequeue styles for WordPress1,000+ installs do_action( 'cachify_flush_cache' ) libs/factory/templates/includes/class-helpers.php:233
  21. Clear Cache Everywhere icon Clear Cache Everywhere1,000+ installs do_action( 'cachify_flush_cache' ) inc/clear-cache.php:1080
  22. The Cache Purger icon The Cache Purger1,000+ installs do_action( 'cachify_flush_cache' ) work/inc/modules/plugin.php:328
  23. Рекламная платформа Native Rent icon Рекламная платформа Native Rent300+ installs do_action( 'cachify_flush_cache' ) inc/Admin/SiteCache.php:151
  24. CSS Minify icon CSS Minify200+ installs do_action( 'cachify_flush_cache' ) classlesses/bpminifycssPageCacheFlush.php:14
  25. AutoTill icon AutoTill100+ installs do_action( 'cachify_flush_cache' ) autothink-shopping-agent.php:164
  26. EZY.ai icon EZY.ai100+ installs do_action( 'cachify_flush_cache' ) includes/class-ezy-ai-cache-purger.php:197
  27. Mornolink for WHMCS icon Mornolink for WHMCS70+ installs do_action( 'cachify_flush_cache' ) includes/class-whmcs-price-helpers.php:60
  28. Backvera icon Backvera10+ installs do_action( 'cachify_flush_cache' ) includes/class-backvera-cache-flush.php:253
  29. SimpliRoot icon SimpliRoot10+ installs do_action( 'cachify_flush_cache' ) includes/cache-purge.php:79
  30. 1Platform Content AI icon 1Platform Content AI10+ installs do_action( 'cachify_flush_cache' ) includes/admin/apps/panels/TocSettingsPanel.php:326
  31. AIO Performance Profiler, Monitor, Optimize, Compress & Debug icon AIO Performance Profiler, Monitor, Optimize, Compress & Debug10+ installs do_action( 'cachify_flush_cache' ) combine/enhancerCache.php:772
  32. Advanced WPPerformance icon Advanced WPPerformance10+ installs do_action( 'cachify_flush_cache' ) Classes/class-http2push.php:204
  33. Translate WordPress Without Yearly Fees icon Translate WordPress Without Yearly FeesFewer than 10 installs do_action( 'cachify_flush_cache' ) incode-translate-master.php:341
  34. Naklov SEO icon Naklov SEOFewer than 10 installs do_action( 'cachify_flush_cache' ) naklovadmin.php:1523
  35. 6Arshid Social Community icon 6Arshid Social CommunityFewer than 10 installs do_action( 'cachify_flush_cache' ) includes/class-cache-purge.php:129
  36. BackupBridge icon BackupBridgeFewer than 10 installs do_action( 'cachify_flush_cache' ) includes/Utils/class-cache.php:32
  37. Target Media Toolkit icon Target Media ToolkitFewer than 10 installs do_action( 'cachify_flush_cache' ) includes/helpers.php:37
  38. Siternet Website Migration icon Siternet Website MigrationFewer than 10 installs do_action( 'cachify_flush_cache' ) includes/class-url-guard.php:195
  39. BroodChat AI icon BroodChat AIFewer than 10 installs do_action( 'cachify_flush_cache' ) broodchat-ai.php:78
  40. Baskerville AI Security icon Baskerville AI SecurityFewer than 10 installs do_action( 'cachify_flush_cache' ) admin/class-baskerville-admin.php:6083

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.