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:
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.
-
WP Fastest Cache1+ million installs
do_action( 'wpfc_clear_all_cache' )wpFastestCache.php:2830 -
MainWP Child700,000+ installs
do_action( 'wpfc_clear_all_cache', true )class/class-mainwp-child-cache-purge.php:1081 -
Converter for Media500,000+ installs
do_action( 'wpfc_clear_all_cache' )src/Service/CacheIntegrator.php:70 -
GDPR Cookie Compliance300,000+ installs
do_action( 'wpfc_clear_all_cache', true )controllers/class-moove-gdpr-cache-purge.php:130 -
Formidable Forms300,000+ installs
do_action( 'wpfc_clear_all_cache' )classes/models/FrmAntiSpam.php:357 -
Photo Gallery, Sliders, Proofing and Themes300,000+ installs
do_action( 'wpfc_clear_all_cache' )src/PrivateGalleries/CachePurge.php:60 -
Optimole200,000+ installs
do_action( 'wpfc_clear_all_cache', true )inc/compatibilities/wp_fastest_cache.php:45 -
AI Engine90,000+ installs
do_action( 'wpfc_clear_all_cache' )labs/mcp-ops.php:312 -
Site Reviews60,000+ installs
do_action( 'wpfc_clear_all_cache' )plugin/Integrations/Cache/Controller.php:276 -
WP ULike60,000+ installs
do_action( 'wpfc_clear_all_cache' )includes/classes/class-wp-ulike-purge-cache.php:264 -
Modular DS: Monitor, update, and backup multiple websites40,000+ installs
do_action( 'wpfc_clear_all_cache', true )src/app/Cache/CachePurger.php:267 -
Bit Form10,000+ installs
do_action( 'wpfc_clear_all_cache', true )backend/app/Helpers/CacheCompat.php:404 -
Prevent Browser Caching10,000+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-prevent-browser-caching-integrations.php:104 -
Search Atlas SEO6,000+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-metasync-cache-purge.php:690 -
Enable Abilities for MCP6,000+ installs
do_action( 'wpfc_clear_all_cache' )includes/abilities.php:5414 -
Create5,000+ installs
do_action( 'wpfc_clear_all_cache' )lib/class-cache-manager.php:170 -
WPBot5,000+ installs
do_action( 'wpfc_clear_all_cache', true )includes/asset-optimizer/src/Compat/Wp_Fastest_Cache.php:39 -
Vigilant4,000+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-under-attack.php:877 -
WP Helper Premium1,000+ installs
do_action( 'wpfc_clear_all_cache' )functions/whp-base-functions.php:150 -
Glow: maintenance & support management for agencies800+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-glow-worker-wordpress.php:2178 -
Hitsteps Web Analytics700+ installs
do_action( 'wpfc_clear_all_cache' )hitsteps.php:359 -
Persian Admnin Fonts500+ installs
do_action( 'wpfc_clear_all_cache' )admin/class-admin.php:732 -
MCP Server for WordPress300+ installs
do_action( 'wpfc_clear_all_cache' )src/Abilities/Actions/Plugin_Actions.php:271 -
Reactflow Visitor Recording and Heatmaps200+ installs
do_action( 'wpfc_clear_all_cache' )reactflow.php:108 -
WP Supra200+ installs
do_action( 'wpfc_clear_all_cache', true )wpsupra/site-maintenance.php:116 -
IATO MCP200+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-cache.php:565 -
MrSeokar Inline Related Products for WooCommerce100+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-mrseokar-ip-cache.php:175 -
CPW Media Offload for Cloudflare R2100+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-cpw-r2-compat.php:370 -
TranslateRocket100+ installs
do_action( 'wpfc_clear_all_cache' )src/Cache.php:325 -
Bit Connect100+ installs
do_action( 'wpfc_clear_all_cache' )backend/app/Services/PageCache.php:364 -
EZY.ai100+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-ezy-ai-cache-purger.php:124 -
ReviewPine: Google Reviews Widget, Slider and Badge100+ installs
do_action( 'wpfc_clear_all_cache' )reviewpine.php:221 -
Cookie Rocket90+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-cr-core.php:369 -
WebinarIgnition80+ installs
do_action( 'wpfc_clear_all_cache' )inc/wi-campaign-type-migration.php:241 -
AICOM80+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-cache-buster.php:67 -
Zorem AI Agent Connector70+ installs
do_action( 'wpfc_clear_all_cache' )includes/Abilities/Site/RefreshCache.php:163 -
Airano MCP Bridge70+ installs
do_action( 'wpfc_clear_all_cache', true )airano-mcp-bridge.php:2268 -
ContentGecko Connector60+ installs
do_action( 'wpfc_clear_all_cache' )includes/services/class-cg-post-service.php:943 -
WPZOOM AI Connect60+ installs
do_action( 'wpfc_clear_all_cache', true )includes/class-wpzoom-ai-cache.php:90 -
Smalk AI Analytics50+ installs
do_action( 'wpfc_clear_all_cache' )includes/settings.php:1448 -
ACW Maintenance Mode by Page50+ installs
do_action( 'wpfc_clear_all_cache' )acw-maintenance-mode-by-page.php:695 -
Shiftbox20+ installs
do_action( 'wpfc_clear_all_cache', true )includes/class-shiftbox-health.php:207 -
WP Blast20+ installs
do_action( 'wpfc_clear_all_cache' )inc/third-party/wp-fastest-cache/wp-fastest-cache-functions.php:97 -
Marcelo Site Connector20+ installs
do_action( 'wpfc_clear_all_cache' )marcelo-site-connector.php:418 -
Agevow10+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-cache.php:53 -
Agent Toolbelt10+ installs
do_action( 'wpfc_clear_all_cache' )operations/class-atb-operation-purge-all-caches.php:276 -
Winden10+ installs
do_action( 'wpfc_clear_all_cache', true )App/Caching/PageCachePurge.php:132 -
SimpliRoot10+ installs
do_action( 'wpfc_clear_all_cache' )includes/cache-purge.php:51 -
Seeb Abilities10+ installs
do_action( 'wpfc_clear_all_cache' )src/Abilities/Site.php:391 -
Flexa Extra10+ installs
do_action( 'wpfc_clear_all_cache' )includes/Core/Cache/PagePurge.php:143 -
Alios Media Offload10+ installs
do_action( 'wpfc_clear_all_cache', true )includes/class-r2mo-cache.php:27 -
Owl Security10+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-owlsec-backup-job.php:1687 -
BahriCanli Publisher10+ installs
do_action( 'wpfc_clear_all_cache', false )bahricanli-publisher.php:127 -
Hushpage10+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-hushpage-settings.php:403 -
VizProof Timeline10+ installs
do_action( 'wpfc_clear_all_cache', true )includes/class-vizproof-timeline-runs-service.php:2882 -
OZY Smart Search10+ installs
do_action( 'wpfc_clear_all_cache', true )includes/integrations/cache/class-wp-super-cache.php:70 -
tip.BOX10+ installs
do_action( 'wpfc_clear_all_cache' )src/Service/CacheIntegrator.php:74 -
WAAVE Compliance WP10+ installs
do_action( 'wpfc_clear_all_cache', true )includes/class-waave-compliance-cache.php:241 -
All in one Minifier10+ installs
do_action( 'wpfc_clear_all_cache' )includes/class-aiom-compat.php:263 -
UseMinted Analytics for WooCommerceFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )useminted-analytics.php:474 -
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 -
Krystian Gacek Image Format ConverterFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )src/Compatibility/CachePurger.php:60 -
JoryioFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-joryio.php:800 -
Dotance Website FeedbackFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-frontend.php:187 -
OG AnalyticsFewer than 10 installs
do_action( 'wpfc_clear_all_cache', true )backend/framework/helpers/external/CachePurger.php:52 -
Arva SEOFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/Speed/OtherCaches.php:652 -
Spinix Migration & BackupFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-spinix-plugin.php:125 -
PeakMapsFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/database/nu_database.php:687 -
OptimiseMy.AI ConnectorFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/background.php:291 -
AI Page & Blog Generator for Local SEOFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )modules/agent/class-live.php:154 -
RevysFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-revys-cache.php:235 -
Seed & Solace Website FixesFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-tend-fixer.php:128 -
Sanvador Store, Dealer & Service LocatorFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-sanvador-store-locator-compat.php:164 -
OharaFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/Cache/Purge.php:152 -
MultilangaFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/integrations/class-mlg-page-cache.php:71 -
ShopToAI ConnectorFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )shoptoai-connector.php:1460 -
WebKernelAI SecurityFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )class-api.php:1246 -
a11yfyFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-a11yfy-cache.php:138 -
relaybellFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )relaybell.php:230 -
PixelonceFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-stepcount-page-cache.php:58 -
Turk SEM Search IntentFewer than 10 installs
do_action( 'wpfc_clear_all_cache', false )includes/class-compat.php:222 -
AI Semantic HandshakeFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-aish-rest.php:1687 -
GripMCPFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/Support/Page_Cache.php:163 -
Valhalla for VikingerFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )modules/announcements/includes/class-valhfovi-ann-store.php:319 -
C2C AI Sales AgentFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/plugin.php:80 -
GralusFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-cache.php:26 -
AudiScale ConnectorFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/performance-environment.php:90 -
Strata Site AuditFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )src/Fixes/CachePurge.php:103 -
ReviewSolicitors WidgetsFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-rswidgets-cache.php:113 -
Stinoment Growth AssistantFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/modules/assistant/class-agent-site-tools.php:721 -
BTW GEO CoreFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/functions.php:277 -
Underpixel Lead RotatorFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )underpixel-lead-rotator.php:52 -
HorairFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )horair.php:136 -
Oversight ShabbatFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-cache-purger.php:44 -
AuthorLabelFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/Compat/Cache.php:116 -
Sellevo CommerceFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-sellevo-compat.php:33 -
Caltrixio for WooCommerceFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-caltrixio-settings.php:241 -
PublishRank SEO for WordPressFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )src/SEO/SiteConnections.php:546 -
StowawayFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/Health/Monitor.php:303 -
MSACAlab Accessibility CheckerFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-corea11y-compat.php:214 -
SwiftLingFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/cache-plugins.php:140 -
LinkWoowFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/class-linkwoow-plugin.php:288 -
BackupBridgeFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/Utils/class-cache.php:31 -
OG ConnectorsFewer than 10 installs
do_action( 'wpfc_clear_all_cache', true )backend/framework/helpers/external/CachePurger.php:52 -
klevAI ConectorFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/88-cache.php:153 -
Tendrix ConnectorFewer than 10 installs
do_action( 'wpfc_clear_all_cache' )includes/ops.php:185 -
BroodChat AIFewer than 10 installs
do_action( 'wpfc_clear_all_cache', true )broodchat-ai.php:77 -
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.