OPcache Reset for WordPress

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.


1. cachetool

sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install cachetool


sudo yum -y install wp-cli

Install the plugin using WP-CLI:

wp plugin install opcache-reset --activate

That’s it. Zero configuration is required.