WordPress action hook
ce_clear_cache
Fired by 23 WordPress plugins, running on 3.1M+ sites between them.
How to use ce_clear_cache
It's an action: your callback runs at that point. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'ce_clear_cache', function() {
// Your code runs here.
}, 10, 1 );Argument names come from CookieYes's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
23 plugins that fire ce_clear_cache
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
CookieYes1+ million installs
do_action( 'ce_clear_cache' )lite/admin/modules/cache/services/class-cache-enabler.php:48 -
Duplicator1+ million installs
do_action( 'ce_clear_cache' )src/Utils/CachesPurge/CachesPurge.php:211 -
WP-Optimize1+ million installs
do_action( 'ce_clear_cache' )minify/class-wp-optimize-minify-cache-functions.php:202 -
Fast Velocity Minify30,000+ installs
do_action( 'ce_clear_cache' )inc/common.php:218 -
ShopBuilder10,000+ installs
do_action( 'ce_clear_cache' )app/Helpers/Cache.php:453 -
bbp style pack6,000+ installs
do_action( 'ce_clear_cache' )includes/functions.php:3652 -
RevivePress4,000+ installs
do_action( 'ce_clear_cache' )includes/Core/SiteCache.php:82 -
Vigilant4,000+ installs
do_action( 'ce_clear_cache' )includes/class-under-attack.php:914 -
FAZ Cookie Manager3,000+ installs
do_action( 'ce_clear_cache' )admin/modules/cache/services/class-cache-enabler.php:61 -
Ryviu1,000+ installs
do_action( 'ce_clear_cache' )includes/common-functions.php:33 -
The Cache Purger1,000+ installs
do_action( 'ce_clear_cache' )work/inc/modules/plugin.php:776 -
WiserReview Product Reviews for WooCommerce800+ installs
do_action( 'ce_clear_cache' )wiser-review.php:3677 -
Revive.so600+ installs
do_action( 'ce_clear_cache' )includes/core/class-revive-site-cache.php:74 -
Email Marketing for WordPress and WooCommerce600+ installs
do_action( 'ce_clear_cache' )App/Helpers/PurgeCache.php:69 -
Shamor400+ installs
do_action( 'ce_clear_cache' )wp-shamor.php:521 -
Cache Cleaner X-Ray300+ installs
do_action( 'ce_clear_cache' )includes/providers/class-lcc-provider-cache-enabler.php:10 -
Product Reviews & Photo Reviews for WooCommerce100+ installs
do_action( 'ce_clear_cache' )App/Helpers/PurgeCache.php:69 -
Yes-co ORES10+ installs
do_action( 'ce_clear_cache' )includes/classes/yog_synchronization_manager.php:553 -
Nymbl Cookie Sentinel10+ installs
do_action( 'ce_clear_cache' )includes/class-cache.php:110 -
DOT10+ installs
do_action( 'ce_clear_cache' )includes/class-dot-press-admin-data.php:268 -
Speed Pilot: Speed Up Your Website PerformanceFewer than 10 installs
do_action( 'ce_clear_cache' )includes/Cache/CacheClearService.php:583 -
relaybellFewer than 10 installs
do_action( 'ce_clear_cache' )relaybell.php:238 -
FastLayerFewer than 10 installs
do_action( 'ce_clear_cache' )includes/class-page-cache.php:1521
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.