| 开发者 | beginwpuk |
|---|---|
| 更新时间 | 2026年11月27日 06:15 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp fcb-cache-watch flush, flush <url>, flush --post=<id>, status, integrations, scan, preloadX-FCB-Cache-Watch-Key header.fcb-cache-watch folder to /wp-content/plugins/.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.
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.
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.
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.
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.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.
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 );
fcb_cache_watch_integrations (filter): add or remove cache layersfcb_cache_watch_post_urls (filter): URLs purged when a post changesfcb_cache_watch_preload_urls (filter): URLs warmed after a full flushfcb_cache_watch_watched_options (filter): settings that count as a site-wide changefcb_cache_watch_ignored_post_types (filter): post types to ignorefcb_cache_watch_fingerprint_dirs and fcb_cache_watch_fingerprint_extensions (filters): what the file scan looks atfcb_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 underfcb_cache_watch_capability (filter): who can manage FCB Cache Watch (default manage_options)fcb_cache_watch_flush (action): after a full flushfcb_cache_watch_purge_urls (action): after a targeted purgefcb_cache_watch_changes_pending (action): when changes are waiting for a flush?key=), because URLs are saved in server, proxy and CDN logs. Send it in the X-FCB-Cache-Watch-Key header (or as key in the request body).fcb_cache_watch_capability filter can now save the settings, not only view them.