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.

Requirements:

1. cachetool

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

2. WP-CLI

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.