[WordPress] 外掛分享: Full Site Cache for CloudFront

首頁外掛目錄 › Full Site Cache for CloudFront
10+
安裝啟用
尚無評分
3335 天前
最後更新
問題解決
WordPress 4.4+ v0.0.2 上架:2017-01-28

內容簡介

如果您的 WordPress 網誌使用 CloudFront 於主要的 WordPress 網域上 (例如:www.example.com),且您希望對未登入使用者做 HTML 頁面的快取,您可以設定這些 HTML 頁面的長期「預設 TTL」,以便於快取可自動失效。

失效行為

當新文章發布時,失效整個快取
當文章有更新時,失效該文章頁面的快取
當該頁面有任何評論發生變更時,失效該貼文頁面快取
每次失效需要至少等候 10 分鐘

需求

PHP 5.4+
WordPress 4.4+
擁有 CloudFront 帳戶並且取得 AWS Access Key 和 Secret Key,以便存取 CloudFront 分發。

建議

將 CSS、JS 和媒體檔案卸載到另一個有不同分發的網域上,因為此外掛在更新文章時會使整個快取失效。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Full Site Cache for CloudFront」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

If you blog are using CloudFront on the main WordPress domain (e.g. www.example.com), and you want to cache HTML page for not logged in user. You could set a long “Default TTL” for these HTML pages if the cache could invalidate automatically.
Invalidation behaviors

Invalidate the whole cache when a new post published
Invalidate a post page when a post updated
Invalidate a post page if have any comment has changed on that page
Each invalidation has a minimum interval of 10 minutes

Requirements

PHP 5.4+
WordPress 4.4+
A CloudFront account and AWS Access Key and Secret Key to access CloudFront distribution.

Recommendations

Offload CSS, JS and medias file to another domain with a different distribution, because this plugin will invalidate the whole cache when updating the post.

延伸相關外掛

文章
Filter
Mastodon