這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Smart Varnish

外掛說明

Smart Varnish A simple plugin to bypass varnish caching for logged in users and serve uncached content.

Useful for websites that don’t want to serve cached content for logged in users and at the same time want to serve cached content to guests.

NOTE: This plugin requires knowledge of varnish caching and server administration, it will not work out of the box. We cannot guarantee it will work in every scenario and recommend usage with discretion.

Please follow the tutorial here.

安裝方式

  1. Install Smart Varnish either via the WordPress.org plugin directory, or by uploading the files to your server.
  2. Activate Smart Varnish through the ‘Plugins’ menu in WordPress.
  3. There are no settings. Make sure that you edit your varnish configurations files and restart varnish server.

Add the following lines of code to vcl_recv in default VCL configuration file.

if( req.request == "POST" || req.http.cookie ~ "smart_varnish_bypass" )
  {
    return( pass );
  }

Warning: If you don’t have the expertise to edit the varnish configurations its better to hire some help as you could damage your server irreparably.

常見問題集

Is there a demo ?

No

Will it work out of the box?

No, you need to add couple of lines of code to your varnish cache configuration files to make it work, check installation procedure.

Can we help in installing the plugin on your server?

Yes we can! Get in touch

Does it work for varnish 3.0?

Works.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Smart Varnish〉的開發相關工作。

參與者

將〈Smart Varnish〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

  • Initial release