WordPress action hook

swift_performance_clear_all_cache

Fired by 8 WordPress plugins, running on 9,030+ sites between them.

How to use swift_performance_clear_all_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:

functions.php
add_action( 'swift_performance_clear_all_cache', function() {
	// Your code runs here.
}, 10, 1 );

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

8 plugins that fire swift_performance_clear_all_cache

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

  1. Search Atlas SEO icon Search Atlas SEO6,000+ installs do_action( 'swift_performance_clear_all_cache' ) includes/class-metasync-cache-purge.php:821
  2. WP Helper Premium icon WP Helper Premium1,000+ installs do_action( 'swift_performance_clear_all_cache' ) functions/whp-base-functions.php:152
  3. ATR Cookie Notice icon ATR Cookie Notice1,000+ installs do_action( 'swift_performance_clear_all_cache' ) atr-cookie-notice.php:117
  4. Atlant Security icon Atlant Security900+ installs do_action( 'swift_performance_clear_all_cache' ) includes/modules/PostBreach.php:652
  5. AutoTill icon AutoTill100+ installs do_action( 'swift_performance_clear_all_cache' ) autothink-shopping-agent.php:179
  6. MAKcubes icon MAKcubes20+ installs do_action( 'swift_performance_clear_all_cache' ) makcubes-cache-nuke.php:254
  7. WPHEKA Request For Quote for WooCommerce icon WPHEKA Request For Quote for WooCommerce10+ installs do_action( 'swift_performance_clear_all_cache' ) includes/class-wpheka-rfq-cache.php:240
  8. AKZ Checkout Fields Manager for WooCommerce icon AKZ Checkout Fields Manager for WooCommerceFewer than 10 installs do_action( 'swift_performance_clear_all_cache' ) akz-checkout-fields-manager-for-woocommerce.php:560

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.