plugin-icon

OPcache Reset

投稿者: Danila Vershinin·
Automatic OPcache reset for WordPress. Invalidates both in-memory and file-based OPCache upon upgrading WordPress.
評価
4/5
バージョン
2.4.0
有効インストール数
200
最終更新日時
Dec 15, 2025
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.

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
無料Business プランを利用中
インストールすることで、WordPress.com の利用規約サードパーティプラグイン利用規約に同意したことになります。
最大テスト回数
WordPress 6.9
このプラグインをダウンロードして、 サイトに使用できます。