Title: Smart Varnish
Author: Smartpixels
Published: <strong>2014 年 10 月 15 日</strong>
Last modified: 2016 年 8 月 30 日

---

搜索插件

![](https://ps.w.org/smart-varnish/assets/banner-772x250.png?rev=1007664)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/smart-varnish/assets/icon-256x256.png?rev=1007664)

# Smart Varnish

 作者：[Smartpixels](https://profiles.wordpress.org/smartpixels/)

[下载](https://downloads.wordpress.org/plugin/smart-varnish.1.0.2.zip)

 * [详情](https://cn.wordpress.org/plugins/smart-varnish/#description)
 * [评价](https://cn.wordpress.org/plugins/smart-varnish/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/smart-varnish/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/smart-varnish/#developers)

 [支持](https://wordpress.org/support/plugin/smart-varnish/)

## 描述

[Smart Varnish](http://www.smartpixels.net/?post_type=products&p=628) 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](http://www.smartpixels.net/?p=650)**.

## 安装

 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](http://www.smartpixels.net/contact/)

  Does it work for varnish 3.0?

Works.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Smart Varnish」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Smartpixels ](https://profiles.wordpress.org/smartpixels/)
 *   [ Arul ](https://profiles.wordpress.org/arulpr/)

[帮助将「Smart Varnish」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/smart-varnish)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/smart-varnish/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/smart-varnish/)，或通过[RSS](https://plugins.trac.wordpress.org/log/smart-varnish/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/smart-varnish/)。

## 更新日志

 * Initial release

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **4.6.0**
 *  语言
 * [English (US)](https://wordpress.org/plugins/smart-varnish/)
 * 标签
 * [varnish](https://cn.wordpress.org/plugins/tags/varnish/)[varnish cache](https://cn.wordpress.org/plugins/tags/varnish-cache/)
 *  [高级视图](https://cn.wordpress.org/plugins/smart-varnish/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/smart-varnish/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/smart-varnish/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/smart-varnish/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/smart-varnish/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/smart-varnish/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/smart-varnish/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/smart-varnish/reviews/)

## 贡献者

 *   [ Smartpixels ](https://profiles.wordpress.org/smartpixels/)
 *   [ Arul ](https://profiles.wordpress.org/arulpr/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/smart-varnish/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.smartpixels.net)