Allows to clear opcache, on all servers on which your site is load-balanced.
Before using this plugin you need to define a constant named RESET_OPCACHE_SECRET
(with a string of your choosing).
Installing this package requires WP-CLI v2.10.0 or greater. Update to the latest stable release with wp cli update
.
wp clear-opcache --host=myhost.com --servers=www-01a,www-01b
Based on https://github.com/wearerequired/wp-cli-clear-opcache