Title: Clear OPcache
Author: jessehorne
Published: <strong>2019 年 11 月 13 日</strong>
Last modified: 2019 年 12 月 7 日

---

搜索插件

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

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

# Clear OPcache

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

[下载](https://downloads.wordpress.org/plugin/clear-opcache.zip)

 * [详情](https://cn.wordpress.org/plugins/clear-opcache/#description)
 * [评价](https://cn.wordpress.org/plugins/clear-opcache/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/clear-opcache/#developers)

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

## 描述

Clear OPcache is a plugin that makes managing OPcache simple. When you install Clear
OPcache, it puts a button in the top admin bar named ‘Flush OPcache’. When that 
button is clicked, it clears OPcache and WinCache if they are enabled. When the 
plugin is installed, it also clears the OPcache before WordPress is updated. This
plugin is useful for saving space and speeding up your site.

When installed, the plugin also creates an entry in the Settings menu named OPcache
where you can view useful stats.

## 评价

![](https://secure.gravatar.com/avatar/ee421d3fd85b44d745307f4aba5cdfac6c8b05237fbfe7d443b9827d164ba234?
s=60&d=retro&r=g)

### 󠀁[works as intended](https://wordpress.org/support/topic/works-as-intended-199/)󠁿

 [Eduard Doloc](https://profiles.wordpress.org/rwky/) 2021 年 11 月 11 日

I sometimes (sadly) have small issues that can be fixed in production (that 1 out
of 1000 cases) and I got to admit I’m lazy on doing local sync for something very
small, but I want to see this available up and fast and due to OPCache in the PHP(
for who has it enabled, also I recommend enabling it if you want to speed up your
website) not all things get really “flushed” when the magic button called “clear
cache” is pressed. This is where this plugin helps, it talks directly to the OPCache
and clears it. The only suggestion I can give to the author is to change the alert
type (JS) to a wordpress notice, besides that, great work!

 [ 阅读所有0条评价 ](https://wordpress.org/support/plugin/clear-opcache/reviews/)

## 贡献者及开发者

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

贡献者

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

[帮助将「Clear OPcache」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/clear-opcache)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.5

 * Added error notice that displays upon plugin activation if OPcache isn’t enabled
 * Fixed bug where error would display if opcache_get_status function didn’t exist

#### 0.4

 * Added notice that displays upon plugin activation

#### 0.3

 * Added OPcache page in Settings menu showing OPcache details
 * Added popup saying OPcache was cleared or if OPcache is disabled

## 额外信息

 *  版本 **0.5**
 *  最后更新：**7 年前**
 *  活跃安装数量 **80+**
 *  WordPress 版本 ** 5.1 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/clear-opcache/)
 * 标签
 * [clear](https://cn.wordpress.org/plugins/tags/clear/)[flush](https://cn.wordpress.org/plugins/tags/flush/)
   [OPcache](https://cn.wordpress.org/plugins/tags/opcache/)[wincache](https://cn.wordpress.org/plugins/tags/wincache/)
 *  [高级视图](https://cn.wordpress.org/plugins/clear-opcache/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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