Cache Watch 1.0.1 has 12 actions and 15 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Cache Watch fires an action
add_action( 'fcb_cache_watch_before_flush', function( $source ) {
// Your code runs here.
}, 10, 1 );
// Change a value Cache Watch is about to use
add_filter( 'fcb_cache_watch_bunny_url', function( $url ) {
// Change $url here.
return $url;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Fires before a full flush. */ do_action( 'fcb_cache_watch_before_flush', $source ); -
/** * Map a site URL to the URL Bunny serves it from (if you use a b-cdn.net * hostname). */ apply_filters( 'fcb_cache_watch_bunny_url', $url ); -
/** * Fires when changes have been recorded and the cache is waiting to be * flushed. */ do_action( 'fcb_cache_watch_changes_pending', $state ); -
/** * Folders included in the file scan. */ apply_filters( 'fcb_cache_watch_fingerprint_dirs', $dirs ); -
/** * File extensions included in the file scan. */ apply_filters( 'fcb_cache_watch_fingerprint_extensions', array( 'php', 'css', 'js', 'html', 'json', 'twig', 'svg' ) ); -
/** * Fires after a full flush. Hook in here for anything Cache Watch doesn't * cover. */ do_action( 'fcb_cache_watch_flush', $source, $result ); -
/** * Add or remove cache layers. */ apply_filters( 'fcb_cache_watch_integrations', $list ); -
/** * Filter the URLs purged when a post changes. */ apply_filters( 'fcb_cache_watch_post_urls', $urls, $post ); -
/** * Filter the URLs warmed after a full flush. */ apply_filters( 'fcb_cache_watch_preload_urls', $urls, $limit ); -
/** * Fires after a targeted purge. */ do_action( 'fcb_cache_watch_purge_urls', $post_ids, $urls, $source, $result ); -
/** * Option names whose change should count as a site-wide change. */ apply_filters( 'fcb_cache_watch_watched_options', array( 'blogname', 'blogdescription', 'home', 'siteurl', 'permalink_structure', 'category_base', 'tag_base', 'show_on_front', 'page_on_front', 'page_for_posts', 'posts_per_page', 'date_format', 'time_format', 'timezone_string', 'gmt_offset', 'sidebars_widgets', 'site_icon', 'site_logo', 'WPLANG', 'blog_public', 'show_avatars', 'default_comment_status' ) ); -
do_action( 'wphb_clear_page_cache' ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
do_action( 'cache_enabler_clear_page_cache_by_post', $id ); -
do_action( 'cache_enabler_clear_page_cache_by_url', $url ); -
apply_filters( 'fcb_cache_watch_capability', 'manage_options' ); -
apply_filters( 'fcb_cache_watch_email_delay', self::DELAY ); -
apply_filters( 'fcb_cache_watch_ignored_post_types', array( 'revision', 'nav_menu_item', 'customize_changeset', 'oembed_cache', 'user_request', 'wp_font_family', 'wp_font_face' ) ); -
apply_filters( 'fcb_cache_watch_min_flush_interval', MINUTE_IN_SECONDS ); -
apply_filters( 'fcb_cache_watch_preload_batch', (int) $batch ); -
apply_filters( 'fcb_cache_watch_term_urls', $urls, $term_id, $taxonomy ); -
apply_filters( 'fcb_cache_watch_track_option_change', $by_person, $option ); -
apply_filters( 'https_local_ssl_verify', false ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'litespeed_purge_post', $id ); -
do_action( 'litespeed_purge_url', $url );
Generated from Cache Watch's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: