WordPress action hook

wpfc_clear_all_cache

Fired by 108 WordPress plugins, running on 3.6M+ sites between them.

“WP Fastest Cache's own hook: clear the whole page cache.”

How to use wpfc_clear_all_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( 'wpfc_clear_all_cache', function( $arg1 ) {
	// Your code runs here.
}, 10, 1 );

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

108 plugins that fire wpfc_clear_all_cache

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

  1. WP Fastest Cache icon WP Fastest Cache1+ million installs do_action( 'wpfc_clear_all_cache' ) wpFastestCache.php:2830
  2. MainWP Child icon MainWP Child700,000+ installs do_action( 'wpfc_clear_all_cache', true ) class/class-mainwp-child-cache-purge.php:1081
  3. Converter for Media icon Converter for Media500,000+ installs do_action( 'wpfc_clear_all_cache' ) src/Service/CacheIntegrator.php:70
  4. GDPR Cookie Compliance icon GDPR Cookie Compliance300,000+ installs do_action( 'wpfc_clear_all_cache', true ) controllers/class-moove-gdpr-cache-purge.php:130
  5. Formidable Forms icon Formidable Forms300,000+ installs do_action( 'wpfc_clear_all_cache' ) classes/models/FrmAntiSpam.php:357
  6. Photo Gallery, Sliders, Proofing and Themes icon Photo Gallery, Sliders, Proofing and Themes300,000+ installs do_action( 'wpfc_clear_all_cache' ) src/PrivateGalleries/CachePurge.php:60
  7. Optimole icon Optimole200,000+ installs do_action( 'wpfc_clear_all_cache', true ) inc/compatibilities/wp_fastest_cache.php:45
  8. AI Engine icon AI Engine90,000+ installs do_action( 'wpfc_clear_all_cache' ) labs/mcp-ops.php:312
  9. Site Reviews icon Site Reviews60,000+ installs do_action( 'wpfc_clear_all_cache' ) plugin/Integrations/Cache/Controller.php:276
  10. WP ULike icon WP ULike60,000+ installs do_action( 'wpfc_clear_all_cache' ) includes/classes/class-wp-ulike-purge-cache.php:264
  11. Modular DS: Monitor, update, and backup multiple websites icon Modular DS: Monitor, update, and backup multiple websites40,000+ installs do_action( 'wpfc_clear_all_cache', true ) src/app/Cache/CachePurger.php:267
  12. Bit Form icon Bit Form10,000+ installs do_action( 'wpfc_clear_all_cache', true ) backend/app/Helpers/CacheCompat.php:404
  13. Prevent Browser Caching icon Prevent Browser Caching10,000+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-prevent-browser-caching-integrations.php:104
  14. Search Atlas SEO icon Search Atlas SEO6,000+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-metasync-cache-purge.php:690
  15. Enable Abilities for MCP icon Enable Abilities for MCP6,000+ installs do_action( 'wpfc_clear_all_cache' ) includes/abilities.php:5414
  16. Create icon Create5,000+ installs do_action( 'wpfc_clear_all_cache' ) lib/class-cache-manager.php:170
  17. WPBot icon WPBot5,000+ installs do_action( 'wpfc_clear_all_cache', true ) includes/asset-optimizer/src/Compat/Wp_Fastest_Cache.php:39
  18. Vigilant icon Vigilant4,000+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-under-attack.php:877
  19. WP Helper Premium icon WP Helper Premium1,000+ installs do_action( 'wpfc_clear_all_cache' ) functions/whp-base-functions.php:150
  20. Glow: maintenance & support management for agencies icon Glow: maintenance & support management for agencies800+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-glow-worker-wordpress.php:2178
  21. Hitsteps Web Analytics icon Hitsteps Web Analytics700+ installs do_action( 'wpfc_clear_all_cache' ) hitsteps.php:359
  22. Persian Admnin Fonts icon Persian Admnin Fonts500+ installs do_action( 'wpfc_clear_all_cache' ) admin/class-admin.php:732
  23. MCP Server for WordPress icon MCP Server for WordPress300+ installs do_action( 'wpfc_clear_all_cache' ) src/Abilities/Actions/Plugin_Actions.php:271
  24. Reactflow Visitor Recording and Heatmaps icon Reactflow Visitor Recording and Heatmaps200+ installs do_action( 'wpfc_clear_all_cache' ) reactflow.php:108
  25. WP Supra icon WP Supra200+ installs do_action( 'wpfc_clear_all_cache', true ) wpsupra/site-maintenance.php:116
  26. IATO MCP icon IATO MCP200+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-cache.php:565
  27. MrSeokar Inline Related Products for WooCommerce icon MrSeokar Inline Related Products for WooCommerce100+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-mrseokar-ip-cache.php:175
  28. CPW Media Offload for Cloudflare R2 icon CPW Media Offload for Cloudflare R2100+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-cpw-r2-compat.php:370
  29. TranslateRocket icon TranslateRocket100+ installs do_action( 'wpfc_clear_all_cache' ) src/Cache.php:325
  30. Bit Connect icon Bit Connect100+ installs do_action( 'wpfc_clear_all_cache' ) backend/app/Services/PageCache.php:364
  31. EZY.ai icon EZY.ai100+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-ezy-ai-cache-purger.php:124
  32. ReviewPine: Google Reviews Widget, Slider and Badge icon ReviewPine: Google Reviews Widget, Slider and Badge100+ installs do_action( 'wpfc_clear_all_cache' ) reviewpine.php:221
  33. Cookie Rocket icon Cookie Rocket90+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-cr-core.php:369
  34. WebinarIgnition icon WebinarIgnition80+ installs do_action( 'wpfc_clear_all_cache' ) inc/wi-campaign-type-migration.php:241
  35. AICOM icon AICOM80+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-cache-buster.php:67
  36. Zorem AI Agent Connector icon Zorem AI Agent Connector70+ installs do_action( 'wpfc_clear_all_cache' ) includes/Abilities/Site/RefreshCache.php:163
  37. Airano MCP Bridge icon Airano MCP Bridge70+ installs do_action( 'wpfc_clear_all_cache', true ) airano-mcp-bridge.php:2268
  38. ContentGecko Connector icon ContentGecko Connector60+ installs do_action( 'wpfc_clear_all_cache' ) includes/services/class-cg-post-service.php:943
  39. WPZOOM AI Connect icon WPZOOM AI Connect60+ installs do_action( 'wpfc_clear_all_cache', true ) includes/class-wpzoom-ai-cache.php:90
  40. Smalk AI Analytics icon Smalk AI Analytics50+ installs do_action( 'wpfc_clear_all_cache' ) includes/settings.php:1448
  41. ACW Maintenance Mode by Page icon ACW Maintenance Mode by Page50+ installs do_action( 'wpfc_clear_all_cache' ) acw-maintenance-mode-by-page.php:695
  42. Shiftbox icon Shiftbox20+ installs do_action( 'wpfc_clear_all_cache', true ) includes/class-shiftbox-health.php:207
  43. WP Blast icon WP Blast20+ installs do_action( 'wpfc_clear_all_cache' ) inc/third-party/wp-fastest-cache/wp-fastest-cache-functions.php:97
  44. Marcelo Site Connector icon Marcelo Site Connector20+ installs do_action( 'wpfc_clear_all_cache' ) marcelo-site-connector.php:418
  45. Agevow icon Agevow10+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-cache.php:53
  46. Agent Toolbelt icon Agent Toolbelt10+ installs do_action( 'wpfc_clear_all_cache' ) operations/class-atb-operation-purge-all-caches.php:276
  47. Winden icon Winden10+ installs do_action( 'wpfc_clear_all_cache', true ) App/Caching/PageCachePurge.php:132
  48. SimpliRoot icon SimpliRoot10+ installs do_action( 'wpfc_clear_all_cache' ) includes/cache-purge.php:51
  49. Seeb Abilities icon Seeb Abilities10+ installs do_action( 'wpfc_clear_all_cache' ) src/Abilities/Site.php:391
  50. Flexa Extra icon Flexa Extra10+ installs do_action( 'wpfc_clear_all_cache' ) includes/Core/Cache/PagePurge.php:143
  51. Alios Media Offload icon Alios Media Offload10+ installs do_action( 'wpfc_clear_all_cache', true ) includes/class-r2mo-cache.php:27
  52. Owl Security icon Owl Security10+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-owlsec-backup-job.php:1687
  53. BahriCanli Publisher icon BahriCanli Publisher10+ installs do_action( 'wpfc_clear_all_cache', false ) bahricanli-publisher.php:127
  54. Hushpage icon Hushpage10+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-hushpage-settings.php:403
  55. VizProof Timeline icon VizProof Timeline10+ installs do_action( 'wpfc_clear_all_cache', true ) includes/class-vizproof-timeline-runs-service.php:2882
  56. OZY Smart Search icon OZY Smart Search10+ installs do_action( 'wpfc_clear_all_cache', true ) includes/integrations/cache/class-wp-super-cache.php:70
  57. tip.BOX icon tip.BOX10+ installs do_action( 'wpfc_clear_all_cache' ) src/Service/CacheIntegrator.php:74
  58. WAAVE Compliance WP icon WAAVE Compliance WP10+ installs do_action( 'wpfc_clear_all_cache', true ) includes/class-waave-compliance-cache.php:241
  59. All in one Minifier icon All in one Minifier10+ installs do_action( 'wpfc_clear_all_cache' ) includes/class-aiom-compat.php:263
  60. UseMinted Analytics for WooCommerce icon UseMinted Analytics for WooCommerceFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) useminted-analytics.php:474
  61. 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( 'wpfc_clear_all_cache', true ) includes/demos/class-cache.php:65
  62. Krystian Gacek Image Format Converter icon Krystian Gacek Image Format ConverterFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) src/Compatibility/CachePurger.php:60
  63. Joryio icon JoryioFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-joryio.php:800
  64. Dotance Website Feedback icon Dotance Website FeedbackFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-frontend.php:187
  65. OG Analytics icon OG AnalyticsFewer than 10 installs do_action( 'wpfc_clear_all_cache', true ) backend/framework/helpers/external/CachePurger.php:52
  66. Arva SEO icon Arva SEOFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/Speed/OtherCaches.php:652
  67. Spinix Migration & Backup icon Spinix Migration & BackupFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-spinix-plugin.php:125
  68. PeakMaps icon PeakMapsFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/database/nu_database.php:687
  69. OptimiseMy.AI Connector icon OptimiseMy.AI ConnectorFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/background.php:291
  70. AI Page & Blog Generator for Local SEO icon AI Page & Blog Generator for Local SEOFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) modules/agent/class-live.php:154
  71. Revys icon RevysFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-revys-cache.php:235
  72. Seed & Solace Website Fixes icon Seed & Solace Website FixesFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-tend-fixer.php:128
  73. Sanvador Store, Dealer & Service Locator icon Sanvador Store, Dealer & Service LocatorFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-sanvador-store-locator-compat.php:164
  74. Ohara icon OharaFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/Cache/Purge.php:152
  75. Multilanga icon MultilangaFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/integrations/class-mlg-page-cache.php:71
  76. ShopToAI Connector icon ShopToAI ConnectorFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) shoptoai-connector.php:1460
  77. WebKernelAI Security icon WebKernelAI SecurityFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) class-api.php:1246
  78. a11yfy icon a11yfyFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-a11yfy-cache.php:138
  79. relaybell icon relaybellFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) relaybell.php:230
  80. Pixelonce icon PixelonceFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-stepcount-page-cache.php:58
  81. Turk SEM Search Intent icon Turk SEM Search IntentFewer than 10 installs do_action( 'wpfc_clear_all_cache', false ) includes/class-compat.php:222
  82. AI Semantic Handshake icon AI Semantic HandshakeFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-aish-rest.php:1687
  83. GripMCP icon GripMCPFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/Support/Page_Cache.php:163
  84. Valhalla for Vikinger icon Valhalla for VikingerFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) modules/announcements/includes/class-valhfovi-ann-store.php:319
  85. C2C AI Sales Agent icon C2C AI Sales AgentFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/plugin.php:80
  86. Gralus icon GralusFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-cache.php:26
  87. AudiScale Connector icon AudiScale ConnectorFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/performance-environment.php:90
  88. Strata Site Audit icon Strata Site AuditFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) src/Fixes/CachePurge.php:103
  89. ReviewSolicitors Widgets icon ReviewSolicitors WidgetsFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-rswidgets-cache.php:113
  90. Stinoment Growth Assistant icon Stinoment Growth AssistantFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/modules/assistant/class-agent-site-tools.php:721
  91. BTW GEO Core icon BTW GEO CoreFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/functions.php:277
  92. Underpixel Lead Rotator icon Underpixel Lead RotatorFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) underpixel-lead-rotator.php:52
  93. Horair icon HorairFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) horair.php:136
  94. Oversight Shabbat icon Oversight ShabbatFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-cache-purger.php:44
  95. AuthorLabel icon AuthorLabelFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/Compat/Cache.php:116
  96. Sellevo Commerce icon Sellevo CommerceFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-sellevo-compat.php:33
  97. Caltrixio for WooCommerce icon Caltrixio for WooCommerceFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-caltrixio-settings.php:241
  98. PublishRank SEO for WordPress icon PublishRank SEO for WordPressFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) src/SEO/SiteConnections.php:546
  99. Stowaway icon StowawayFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/Health/Monitor.php:303
  100. MSACAlab Accessibility Checker icon MSACAlab Accessibility CheckerFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-corea11y-compat.php:214
  101. SwiftLing icon SwiftLingFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/cache-plugins.php:140
  102. LinkWoow icon LinkWoowFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-linkwoow-plugin.php:288
  103. BackupBridge icon BackupBridgeFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/Utils/class-cache.php:31
  104. OG Connectors icon OG ConnectorsFewer than 10 installs do_action( 'wpfc_clear_all_cache', true ) backend/framework/helpers/external/CachePurger.php:52
  105. klevAI Conector icon klevAI ConectorFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/88-cache.php:153
  106. Tendrix Connector icon Tendrix ConnectorFewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/ops.php:185
  107. BroodChat AI icon BroodChat AIFewer than 10 installs do_action( 'wpfc_clear_all_cache', true ) broodchat-ai.php:77
  108. ICP Registration Home 404 icon ICP Registration Home 404Fewer than 10 installs do_action( 'wpfc_clear_all_cache' ) includes/class-icpreho4-plugin.php:1166

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.