Title: Flush Opcache with Varnish
Author: johnnyb
Published: <strong>2017 年 12 月 27 日</strong>
Last modified: 2018 年 1 月 14 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/flush-opcache-with-varnish.svg)

# Flush Opcache with Varnish

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

[下载](https://downloads.wordpress.org/plugin/flush-opcache-with-varnish.1.1.2.zip)

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

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

## 描述

Flush Opcache with Varnish automatically flushes the PHP Opcache when one of the“
Empty Cache” buttons that Mika Epstein’s excellent [Varnish HTTP Cache](https://wordpress.org/plugins/varnish-http-purge/)
creates are clicked.

If the [WP Opcache](https://wordpress.org/plugins/flush-opcache/) plugin is installed
it is used to flush the opcache to let the opcache be re-warmed according to your
WP Opcache settings, (and you can turn off WP Opcache’s “Flush PHP Opcache” button
from the Admin toolbar).

If [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/) is installed 
then the WP Super Cache cache will be cleared as well.

### Support

Please request support in [this plugin’s support forum](https://wordpress.org/support/plugin/flush-opcache-with-varnish)
on wordpress.org. This way there is a public record of solutions that work for people.

### Contributing

Please submit issues and Pull Requests to [the Github repository](https://github.com/jbeales/flush-opcache-with-varnish/issues).

## 安装

This section describes how to install the plugin and get it working.

 1. Install Flush Opcache with Varnish from the WordPress plugin repository
 2. Activate the plugin through the ‘Plugins’ menu in WordPress, (or just click the“
    Activate” button after installing).
 3. That’s it. There are no settings or anything. If the plugin is active it flushes
    the opcache when an “Empty Cache” button is clicked.

## 常见问题

  Does the _Varnish HTTP Cache_ plugin Need to be installed to use this plugin?

Either [Varnish HTTP Cache](https://wordpress.org/plugins/varnish-http-purge/) or
a plugin that’s based on in, and doesn’t change much, needs to be installed.

  Does the _WP Opcache_ plugin need to be installed to use this plugin?

No.

_If_ [WP Opcache](https://wordpress.org/plugins/flush-opcache/) is installed it 
will handle the actual flushing.

  Does the _WP Super Cache_ plugin need to be installed to use this plugin?

No.

_If_ [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/) is instlled
and active its cache will be cleared in addition to the Varnish and Opcode caches.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ johnnyb ](https://profiles.wordpress.org/johnnyb/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1.2

 * Released January 13, 2018
 * Updated Readme files to correct display issues.

#### 1.1.1

 * Version Number Skipped.

#### 1.1

 * Released January 11, 2018
 * Added clearing the WP Super Cache cache, if it exists.

#### 1.0

 * First release version of Flush Opcache with Varnish.

## 额外信息

 *  版本 **1.1.2**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  PHP 版本 ** 5.5.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/flush-opcache-with-varnish/)
 * 标签
 * [cache](https://cn.wordpress.org/plugins/tags/cache/)[OPcache](https://cn.wordpress.org/plugins/tags/opcache/)
   [varnish](https://cn.wordpress.org/plugins/tags/varnish/)
 *  [高级视图](https://cn.wordpress.org/plugins/flush-opcache-with-varnish/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ johnnyb ](https://profiles.wordpress.org/johnnyb/)

## 支持

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

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