內容簡介
Codelab42 Cache Warming Connect 外掛可將您的 WordPress 網站連接至 cache-warmer.com 服務,確保在清除快取或發佈內容時,立即為訪客加熱快取,避免冷快取的情況發生。
【主要功能】
• 自動快取加熱
• 支援多種快取外掛
• 手動加熱快取選項
• 自訂觸發條件
• WP-CLI 支援
外掛標籤
開發者團隊
② 後台搜尋「Codelab42 Cache Warming Connect」→ 直接安裝(推薦)
原文外掛簡介
Codelab42 Cache Warming Connect connects your WordPress site to the cache-warmer.com service. When your page cache is cleared, or when you publish, update or unpublish content, the plugin tells cache-warmer.com to warm your site’s cache right away, so visitors never hit a cold cache.
Triggers
A full purge in WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed Cache, WP Fastest Cache, Cache Enabler or Autoptimize.
Publishing, updating, unpublishing or trashing any public post type.
Switching themes, saving the Customizer, editing menus and installing plugin or theme updates.
Manually: the “Warm cache now” button, the “Warm cache” admin bar link, or wp cachewarmer warm.
Multiple triggers in one request are combined into a single run. After a run, further automatic triggers wait for the cooldown (5 minutes by default) and are then combined into one follow-up run, so bulk edits don’t trigger dozens of runs.
Developers
Filter cachewarmer_connect_cache_purge_hooks: the action hooks that trigger a warm.
Filter cachewarmer_connect_capability: the capability needed to configure and trigger warming (default manage_options).
Action cachewarmer_connect_triggered( $result, $reason ): fires after each webhook call. $result is true or a WP_Error.
WP-CLI: wp cachewarmer warm, wp cachewarmer status.
