這個外掛並未在最新的 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.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Smart Varnish” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

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

對開發相關資訊感興趣?

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

修改日誌

  • Initial release