Title: OPcache Reset
Author: Danila Vershinin
Published: <strong>2018年6月1日</strong>
Last modified: 2026年5月21日

---

プラグインを検索

![](https://ps.w.org/opcache-reset/assets/banner-772x250.png?rev=3419574)

![](https://ps.w.org/opcache-reset/assets/icon.svg?rev=3419574)

# OPcache Reset

 作者: [Danila Vershinin](https://profiles.wordpress.org/dvershinin/)

[ダウンロード](https://downloads.wordpress.org/plugin/opcache-reset.2.4.0.zip)

 * [詳細](https://ja.wordpress.org/plugins/opcache-reset/#description)
 * [レビュー](https://ja.wordpress.org/plugins/opcache-reset/#reviews)
 * [開発](https://ja.wordpress.org/plugins/opcache-reset/#developers)

 [サポート](https://wordpress.org/support/plugin/opcache-reset/)

## 説明

This plugin clears OPcache after updating WordPress core, themes, and files.
 Unlike
other plugins, it is also compatible with [WordPress updates made by Linux cron](https://www.getpagespeed.com/server-setup/performance-friendly-wordpress-updates).

### Features

 * Automatic OPcache reset after plugin/theme/core updates
 * Clears both memory-based and file-based OPcache
 * Works with cron-based WordPress updates (CLI context)
 * WP-CLI commands for manual OPcache management
 * Zero external dependencies (optional cachetool support)

### Configuration

The plugin works automatically for web-based updates. For CLI-based updates (cron,
WP-CLI), configure your PHP-FPM socket:

**Option 1: Create `.cachetool.yml` in your WordPress root:**

    ```
    adapter: fastcgi
    fastcgi: /run/php-fpm/www.sock
    ```

**Option 2: Use cachetool binary** (if installed in PATH)

### WP-CLI Commands

Reset OPcache from the command line:

    ```
    wp opcache reset
    ```

Show OPcache status and statistics:

    ```
    wp opcache status
    ```

Output status as JSON:

    ```
    wp opcache status --format=json
    ```

## 評価

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

### 󠀁[Good !](https://wordpress.org/support/topic/good-4504/)󠁿

 [geoffreymerck](https://profiles.wordpress.org/geoffreymerck/) 2019年5月27日

This almost what I have been looking for. The OPCache is also reset when installing
new plugins, but not when deinstalling.

 [ 1件のレビューをすべて表示 ](https://wordpress.org/support/plugin/opcache-reset/reviews/)

## 貢献者と開発者

OPcache Reset はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

 *   [ Danila Vershinin ](https://profiles.wordpress.org/dvershinin/)

“OPcache Reset” は1ロケールに翻訳されています。 [翻訳者](https://translate.wordpress.org/projects/wp-plugins/opcache-reset/contributors)
のみなさん、翻訳へのご協力ありがとうございます。

[“OPcache Reset” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/opcache-reset)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/opcache-reset/)するか、
[SVN リポジトリ](https://plugins.svn.wordpress.org/opcache-reset/)をチェックする
か、[開発ログ](https://plugins.trac.wordpress.org/log/opcache-reset/)を [RSS](https://plugins.trac.wordpress.org/log/opcache-reset/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 2.4.0

 * Added WP-CLI commands: `wp opcache reset` and `wp opcache status`
 * Added direct FastCGI communication (no cachetool dependency required)
 * Added support for cachetool.yml configuration format
 * Added end-to-end FastCGI testing
 * Improved test coverage (34 tests)

#### 2.3.0

 * Added comprehensive Docker-based integration test suite (27 tests)
 * Added GitHub Actions CI for linting and testing
 * Added PHPStan and PHPCS for code quality
 * Improved OPcache reset verification with validate_timestamps=0 testing
 * Added pre-commit hooks for automated code checks
 * Updated plugin assets (icons, banners)

#### 2.2.0

 * Added support for file-based OPcache clearing with race condition handling
 * Improved cachetool invocation with proper PATH handling

#### 2.1.2

 * No calling cachetool opcache:reset for setups with only file cache

#### 2.1.0

 * Handle file OPcaches in a consistent fashion

#### 2.0.0

 * Handle file OPCaches

#### 1.0.0

 * Initial release.

## メタ

 *  バージョン **2.4.0**
 *  最終更新日 **4週間前**
 *  有効インストール数 **300+**
 *  WordPress バージョン ** 5.0またはそれ以降 **
 *  検証済み最新バージョン: **7.0**
 *  PHP バージョン ** 7.4またはそれ以降 **
 *  言語
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/opcache-reset/)、[English (US)](https://wordpress.org/plugins/opcache-reset/).
 *  [プラグインを翻訳](https://translate.wordpress.org/projects/wp-plugins/opcache-reset)
 * タグ
 * [cache](https://ja.wordpress.org/plugins/tags/cache/)[OPcache](https://ja.wordpress.org/plugins/tags/opcache/)
   [php](https://ja.wordpress.org/plugins/tags/php/)[wp-cli](https://ja.wordpress.org/plugins/tags/wp-cli/)
   [Zend](https://ja.wordpress.org/plugins/tags/zend/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/opcache-reset/advanced/)

## 評価

 5つ星中4つ星

 *  [  0 5-星レビュー     ](https://wordpress.org/support/plugin/opcache-reset/reviews/?filter=5)
 *  [  1 4-星レビュー     ](https://wordpress.org/support/plugin/opcache-reset/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/opcache-reset/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/opcache-reset/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/opcache-reset/reviews/?filter=1)

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

[すべてのレビューを見る](https://wordpress.org/support/plugin/opcache-reset/reviews/)

## 貢献者

 *   [ Danila Vershinin ](https://profiles.wordpress.org/dvershinin/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/opcache-reset/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://github.com/sponsors/dvershinin)