WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Danila Vershinin v2.4.1

OPcache Reset

Automatic OPcache reset for WordPress. Invalidates both in-memory and file-based OPCache upon upgrading WordPress.

OPcache Reset

The facts

Rating
4★ from 1
Active installs
400+
Price
Free
Last updated
20 Aug 2026
Added
Jun 2018
Requires WP
5.0
Tested up to
WP 7.1
Requires PHP
7.4
Downloads
9,311

Our analysis

AI-assisted

OPcache Reset is a WordPress plugin designed to clear OPcache after updates to WordPress core, themes, and files. It functions automatically for web-based updates and is compatible with updates made through Linux cron. The plugin also offers WP-CLI commands for manual management of OPcache.

Best for: This plugin is suitable for developers or site administrators who need efficient OPcache management during WordPress updates.

What it does well

  • Automatically resets OPcache after updates
  • Compatible with cron-based WordPress updates
  • Includes WP-CLI commands for manual management
  • No external dependencies or shell commands required

Where it falls short

  • Limited information on user ratings and active installs
  • Requires configuration for CLI-based updates

Verdict

OPcache Reset provides a straightforward solution for managing OPcache in WordPress, particularly useful for those who perform updates via cron or WP-CLI.

From the developer

Danila Vershinin's own description of OPcache Reset, lightly tidied.

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 and no shell commands

Configuration

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

Create a CacheTool-compatible .cachetool.yml in your WordPress root:

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

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

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for developer tooling.

WPCode

WPCode

93

Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...

Free 3M+ installs 4.9★ (1,873)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
Admin and Site Enhancements

Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...

Free 200k+ installs 5★ (421)
Shortcoder

Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...

Free 100k+ installs 4.9★ (227)
Insert PHP Code Snippet

Add PHP code to your pages and posts easily using shortcodes.

Free 90k+ installs 4.9★ (705)
Code Snippets

An easy, clean, and simple way to enhance your site with code snippets.

Free 1M+ installs 4.7★ (509)