Linux 软件免费装
Banner图

Cache Watch – Clear Cache Everywhere

开发者 beginwpuk
更新时间 2026年10月30日 17:15
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

cache clear cache cloudflare purge cache cache preload

下载

1.0.1

详情介绍:

Cache Watch clears every cache on your WordPress site from one place, at the right time, then warms it back up. Most WordPress sites have three or four caches stacked on top of each other: a cache plugin, the host's server cache, a CDN like Cloudflare and the object cache. You update a page, menu or theme file, and visitors still see the old version, because one of those layers didn't get cleared. Cache Watch fixes that. It notices when something on your site changes, tells you (or just deals with it), purges every cache layer it finds, then preloads the cache so visitors never hit a slow page. It works alongside the cache plugin you already have. It doesn't replace it. Why people use Cache Watch Knows when your site has changed You choose what happens Smart purging Editing one post doesn't need to wipe your whole cache. Cache Watch purges only that post, the home page, its categories and tags, the author, date archives and the feed, so the rest of the site stays fast. Menus, themes and settings changes still flush everything. Clears every cache layer Cache plugins: WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed Cache, WP Fastest Cache, WP-Optimize, FlyingPress, Cache Enabler, Hummingbird, Swift Performance, Comet Cache, Autoptimize Managed hosting: Kinsta, WP Engine, SiteGround, Cloudways (Breeze), Pantheon, GoDaddy Managed WordPress, Pagely, SpinupWP, Pressable / WordPress VIP (Batcache) CDN and server cache: Cloudflare, Bunny CDN, Varnish (direct HTTP PURGE or Proxy Cache Purge), Nginx Helper Page builders: Elementor, Divi and Beaver Builder generated CSS WordPress: the object cache, including Redis and Memcached Cache warming and preload After a purge, Cache Watch visits the affected pages in the background, five at a time, so the next real visitor gets a fast, cached page instead of a slow one. For developers and agencies

安装:

  1. Install from Plugins > Add New (search for "Cache Watch"), or upload the fcb-cache-watch folder to /wp-content/plugins/.
  2. Activate the plugin.
  3. Go to Settings > Cache Watch. Your cache plugin and host are detected automatically.
  4. Choose Notify me or Flush automatically, and set a schedule if you want one.
  5. If you use Cloudflare, Bunny CDN or Varnish, add the details on the Integrations tab and click Test connection.

屏幕截图:

  • Settings: choose to be notified or clear the cache automatically, set a schedule and turn on cache warming.
  • Integrations: detected cache plugins and hosts, plus Cloudflare, Bunny CDN and Varnish.
  • Tools: quick actions, WP-CLI commands, the deploy webhook and the activity log.
  • Admin bar: clear all caches or purge the page you're looking at.

升级注意事项:

1.0.1 Renamed to FCB Cache Watch. Install and activate it, and your settings move across from Cache Watch, which is switched off. Then delete the old plugin. 1.0.0 First release.

常见问题:

Is this a caching plugin?

No. Cache Watch doesn't cache anything itself. It works with the cache plugin, host and CDN you already have, and makes sure they're cleared at the right time.

My cache plugin already clears the cache when I update a post. Why do I need this?

Most cache plugins only clear the post you edited. They often miss menus, widgets, Customizer changes, theme files uploaded by FTP, and the other layers above them, like your host's server cache and Cloudflare. Cache Watch covers all of those, in one place.

Why am I still seeing old content after clearing my cache?

Usually because another cache layer is still serving the old page, often Cloudflare, Varnish or your host's server cache. Cache Watch clears every layer it detects together, so nothing is left behind.

How do I clear the Cloudflare cache automatically from WordPress?

Add a Cloudflare API token on the Integrations tab and choose Flush automatically. Cache Watch will purge the changed URLs from Cloudflare whenever you update your site, or purge everything when a site-wide change is made.

Does it work with WP Rocket, LiteSpeed Cache and W3 Total Cache?

Yes. These and nine other cache plugins are detected and cleared automatically. See the full list above.

Does it work with WooCommerce?

Yes. Product updates and stock changes are detected, and the affected product and archive pages are purged.

Will flushing the cache slow my site down?

Briefly, because pages have to be rebuilt. That's why Cache Watch uses smart purging (only clearing what changed) and warms the cache afterwards.

What permissions does the Cloudflare API token need?

Zone · Cache Purge · Purge. If you want Cache Watch to find your Zone ID automatically, also add Zone · Zone · Read. Restrict the token to the zone for this site.

The scheduled flush doesn't run on time.

WordPress runs scheduled tasks when someone visits the site, so on quiet sites they can run late. For exact timing, add define( 'DISABLE_WP_CRON', true ); to wp-config.php and set up a real cron job on your server to request https://yoursite.com/wp-cron.php every 5 to 15 minutes.

Can I clear the cache from a deploy or CI pipeline?

Yes. Use the deploy webhook on the Tools tab from GitHub Actions, a deploy script or Zapier, or run wp fcb-cache-watch flush with WP-CLI.

Can I add my own cache layer?

Yes. Extend FCB_Cache_Watch_Integration and register your class with the fcb_cache_watch_integrations filter. Or, for a simple case, hook into fcb_cache_watch_flush: add_action( 'fcb_cache_watch_flush', function ( $source, $result ) { /* purge something */ }, 10, 2 );

Which hooks are available?

  • fcb_cache_watch_integrations (filter): add or remove cache layers
  • fcb_cache_watch_post_urls (filter): URLs purged when a post changes
  • fcb_cache_watch_preload_urls (filter): URLs warmed after a full flush
  • fcb_cache_watch_watched_options (filter): settings that count as a site-wide change
  • fcb_cache_watch_ignored_post_types (filter): post types to ignore
  • fcb_cache_watch_fingerprint_dirs and fcb_cache_watch_fingerprint_extensions (filters): what the file scan looks at
  • fcb_cache_watch_capability (filter): who can manage Cache Watch (default manage_options)
  • fcb_cache_watch_flush (action): after a full flush
  • fcb_cache_watch_purge_urls (action): after a targeted purge
  • fcb_cache_watch_changes_pending (action): when changes are waiting for a flush

更新日志:

1.0.1 1.0.0