[WordPress] 外掛分享: Varnish/Nginx Proxy Caching

WordPress 外掛 Varnish/Nginx Proxy Caching 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Varnish/Nginx Proxy Caching」是 2015-11-24 上架。
  • 目前有 1000 個安裝啟用數。
  • 上一次更新是 2019-10-21,距離現在已有 2022 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.2.4 以上。
  • 有 10 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

razvanstanga |

外掛標籤

cache | nginx | Purge | caching | varnish |

內容簡介

這個外掛可以完整整合 WordPress Varnish Cache 3.x/4.x/5.x 和 Nginx Proxy Cache。

這個外掛可以處理所有與 Varnish Cache 和 Nginx Proxy Cache 的整合,針對高流量網站而設計。

主要功能包括:

管理介面,請參閱截圖
手動清除暫存的控制台,支援正規表示式,可以清除整個資料夾或單一檔案
支援各種 Varnish Cache 實作,請參閱截圖
無限數量的 Varnish Cache 伺服器
使用自訂的標頭與 Varnish Cache 溝通,不會與其他快取外掛、Cloudflare 等產生衝突
Varnish Cache 設定產生器
使用清除索引鍵方法,不需要設定 ACL
除錯
積極維護更新

您可以透過 Varnish Caching 管理面板控制以下內容:

啟用/停用快取
Homepage 快取 TTL
所有其他頁面的快取 TTL
支援所有 Varnish Cache 實作的 IP/主機清除快取
覆寫文章/頁面的預設 TTL
基於清除索引鍵的 PURGE
已登入的 cookie
除錯選項
控制精確手動清除快取的控制台

此外掛還在您修改網站時自動清除 Varnish Cache / Nginx Proxy Cache。

當頁面或文章被修改時,Varnish Caching 會傳送 PURGE 請求到 Varnish Cache / Nginx Proxy Cache。這會在編輯、發布、評論或刪除項目時發生,以及在更改佈景主題時發生。
並非所有頁面都會每次都清除快取,這取決於您的 Varnish / Nginx Proxy Cache 設定。當編輯文章、頁面或自訂文章類型,或新增評論時,只有以下頁面會被清除快取:

首頁
已編輯的文章/頁面
任何與頁面相關聯的分類或標籤

Varnish Cache / Nginx Proxy Cache 是一個網頁加速器,也被稱為快取 HTTP 反向代理伺服器。您可以安裝它在任何支援 HTTP 的伺服器之前,並設定它來快取內容。此外掛不會為您安裝 Varnish / Nginx,也不會為 WordPress 配置 Varnish / Nginx。預期您已經使用提供的配置檔進行了這些配置。

受以下兩個項目啟發:

Proxy Cache Purge


https://github.com/dreamhost/varnish-vcl-collection/

原文外掛簡介

Complete WordPress Varnish Cache 3.x/4.x/5.x and Nginx Proxy Cache integration.
This plugin handles all integration with Varnish Cache and Nginx Proxy Cache. It was designed for high traffic websites.
Main features

admin interface, see screenshots
console for manual purges, supports regular expressions so you can purge an entire folder or just a single file
supports every type of Varnish Cache implementation, see screenshots for examples
unlimited number of Varnish Cache servers
use of custom headers when communicating with Varnish Cache does not interfere with other caching plugins, cloudflare, etc
Varnish Cache configuration generator
purge key method so you don’t need to setup ACLs
debugging
actively maintained

You can control the following from the Varnish Caching admin panel :

Enable/Disable caching
Homepage cache TTL
Cache TTL (for every other page)
IPs/Hosts to clear cache to support every type of Varnish Cache implementation
Override default TTL in posts/pages
Purge key based PURGE
Logged in cookie
Debugging option
console for precise manual purges

This plugin also auto purges Varnish Cache / Nginx Proxy Cache when your site is modified.
Varnish Caching sends a PURGE request to Varnish Cache / Nginx Proxy Cache when a page or post is modified. This occurs when editing, publishing, commenting or deleting an item, and when changing themes.
Not all pages are purged every time, depending on your Varnish / Nginx Proxy Cache configuration. When a post, page, or custom post type is edited, or a new comment is added, only the following pages will purge:

The front page
The post/page edited
Any categories or tags associated with the page

Varnish Cache / Nginx Proxy Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. This plugin does not install Varnish/Nginx for you, nor does it configure Varnish/Nginx for WordPress. It’s expected you already did that on your own using the provided config files.
Inspired from the following :

Proxy Cache Purge


https://github.com/dreamhost/varnish-vcl-collection/

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Varnish/Nginx Proxy Caching」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.2.1 | 1.2.2 | 1.2.3 | 1.3.1 | 1.3.2 | 1.3.3 | 1.4.1 | 1.4.2 | 1.4.3 | 1.5.1 | 1.5.2 | 1.5.3 | 1.5.4 | 1.5.5 | 1.6.1 | 1.6.2 | 1.6.3 | 1.6.4 | 1.6.5 | 1.6.6 | 1.6.7 | 1.6.8 | 1.6.9 | 1.7.0 | 1.7.1 | 1.7.2 | 1.8.0 | 1.8.2 | 1.8.3 | trunk |

延伸相關外掛(你可能也想知道)

文章
Filter
Mastodon