deleteCache( true ); } // Cache Enabler. do_action( 'cache_enabler_clear_complete_cache' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- another plugin's purge hook, invoked on purpose. // Hummingbird. do_action( 'wphb_clear_page_cache' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- another plugin's purge hook, invoked on purpose. // Breeze (Cloudways). do_action( 'breeze_clear_all_cache' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- another plugin's purge hook, invoked on purpose. // Autoptimize: its public "clear all" (which tells the page caches it // knows about in turn). Its autoptimize_action_cachepurged action is // what it announces after a purge, not a way to ask for one. if ( class_exists( 'autoptimizeCache' ) && is_callable( array( 'autoptimizeCache', 'clearall' ) ) ) { autoptimizeCache::clearall(); } // SiteGround Optimizer. if ( function_exists( 'sg_cachepress_purge_cache' ) ) { sg_cachepress_purge_cache(); } // WP Engine. if ( class_exists( 'WpeCommon' ) && method_exists( 'WpeCommon', 'purge_varnish_cache' ) ) { WpeCommon::purge_varnish_cache(); } // Kinsta. if ( isset( $GLOBALS['kinsta_cache'] ) && is_object( $GLOBALS['kinsta_cache'] ) && ! empty( $GLOBALS['kinsta_cache']->kinsta_cache_purge ) && method_exists( $GLOBALS['kinsta_cache']->kinsta_cache_purge, 'purge_complete_caches' ) ) { $GLOBALS['kinsta_cache']->kinsta_cache_purge->purge_complete_caches(); } // Pantheon. if ( function_exists( 'pantheon_wp_clear_edge_all' ) ) { pantheon_wp_clear_edge_all(); } // Cloudflare plugin (their own "purge everything" hook). if ( class_exists( 'CF\WordPress\Hooks' ) ) { do_action( 'cloudflare_purge_everything' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- the Cloudflare plugin's own purge hook. } /** * Fires after the plugin asked page caches to purge. Hook this to purge * a CDN or host cache the plugin does not know about. * * @param string $reason Cause: test_status, test_update, test_delete, * settings, or '' when unspecified. */ do_action( 'improveab_purge_caches', $reason ); } }