Linux 软件免费装
Banner图

FCB Cache Watch – Auto Clear & Purge Every Cache Layer

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

标签

cache varnish clear cache cloudflare purge cache

下载

1.0.1 1.2.0 1.2.1

详情介绍:

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. When you change something, you often don't know which one is still showing the old version. FCB Cache Watch is the control centre for all of them. It notices when something on your site changes, tells you (or just deals with it), clears every cache layer it finds, then quietly rebuilds the cache so visitors never hit a slow page. It works alongside your existing cache plugin. It doesn't replace it. Knows when your site has changed You choose what happens Smart purging Editing one post doesn't need to wipe your whole cache. FCB 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 layer Cache plugins: WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed Cache, WP Fastest Cache, WP-Optimize, FlyingPress, Warp Performance, NitroPack, Jetpack Boost, Cache Enabler, Hummingbird, Swift Performance, Comet Cache, Super Page Cache, SpeedyCache, Powered Cache, Cachify, Hyper Cache, Surge, Autoptimize, Fast Velocity Minify Hosts: Kinsta, WP Engine, SiteGround, Cloudways (Breeze), Bluehost and HostGator, Pantheon, GoDaddy Managed WordPress, Pagely, SpinupWP, Pressable / WordPress VIP (Batcache), Servebolt, RunCloud (RunCache), FlyWP CDN and firewall: Cloudflare (with an API token, or through the official Cloudflare plugin), Bunny CDN, KeyCDN, Fastly, Gcore CDN, Amazon CloudFront, Sucuri Firewall, Hostinger CDN (with the Hostinger Tools plugin) Server: Varnish (direct HTTP PURGE or Proxy Cache Purge), Nginx Helper Generated CSS: Elementor, Divi, Beaver Builder, Spectra and Perfmatters Used CSS WordPress: the object cache, including Redis and Memcached Cache warming After a purge, FCB 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, or upload the fcb-cache-watch folder to /wp-content/plugins/.
  2. Activate the plugin.
  3. Go to Settings > FCB 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 a CDN or firewall (Cloudflare, Bunny CDN, KeyCDN, Fastly, Gcore, Amazon CloudFront or Sucuri) or Varnish, add the details on the Integrations tab and click Test connection. If the official Cloudflare plugin is connected, FCB Cache Watch purges Cloudflare through it and you can skip the API token.

屏幕截图:

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

升级注意事项:

1.2.1 Security and reliability fixes. If your deploy webhook sends the key as ?key= in the URL, move it to the X-FCB-Cache-Watch-Key header. 1.2.0 Adds Warp Performance, NitroPack, Jetpack Boost and six more cache plugins, Servebolt, RunCloud and FlyWP hosting, and KeyCDN, Fastly, Gcore, CloudFront and Sucuri. 1.1.0 Adds Super Page Cache, Hostinger CDN, Bluehost / HostGator and Spectra support. 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. FCB 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. FCB Cache Watch covers all of those, in one place.

Will flushing the cache slow my site down?

Briefly, because pages have to be rebuilt. That's why FCB 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 FCB Cache Watch to find your Zone ID automatically, also add Zone · Zone · Read. Restrict the token to the zone for this site. If the official Cloudflare plugin is installed and signed in, you don't need a token: leave Cloudflare switched off on the Integrations tab and FCB Cache Watch purges through the Cloudflare plugin instead.

What access do the other CDN credentials need?

  • KeyCDN: an API key from Account Settings, and the zone ID.
  • Fastly: an API token with purge access to the service, and the service ID.
  • Gcore: a permanent API token, and the CDN resource ID.
  • Amazon CloudFront: an IAM access key allowed cloudfront:CreateInvalidation on the distribution, and cloudfront:ListInvalidations for the connection test. Invalidations above 1,000 paths a month are billed by AWS, so a large change is sent as a single /* invalidation.
  • Sucuri Firewall: the API key and secret from the Sucuri firewall dashboard. If the Sucuri Security plugin already has its firewall key saved, you can leave the field empty.

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 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_admin_scan_interval (filter): seconds between file scans while you're in wp-admin (default 300, 0 turns them off)
  • fcb_cache_watch_keycdn_url (filter): the URL KeyCDN caches a page under
  • fcb_cache_watch_capability (filter): who can manage FCB 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.2.1 1.2.0 1.1.0 1.0.1 1.0.0