Automatic OPcache reset for WordPress. Invalidates both in-memory and file-based OPCache upon upgrading WordPress.
As of April 2026, OPcache Reset is a WordPress php plugin with 300 active installations and a 4/5 rating from 1 reviews. It has been downloaded 7.7K+ times in total. Requires WordPress 5.0+ and PHP 7.4+. Available on WordPress.org since 2018. Top alternative: WPCode – Insert Headers and Footers +….
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.
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)
Reset OPcache from the command line:
wp opcache rese…| WordPress | 5.0+ requiredTested up to 6.9.4 |
| PHP | 7.4+ required |
wp opcache reset and wp opcache statusPlugin data sourced from WordPress.org. Analysis and metrics by PluginSift.