Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 499 Bytes

README.MD

File metadata and controls

16 lines (9 loc) · 499 Bytes

wp-reset-opcache

Allows to clear opcache, on all servers on which your site is load-balanced.

Installing

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.

Usage

wp clear-opcache --host=myhost.com --servers=www-01a,www-01b

Credits

Based on https://github.com/wearerequired/wp-cli-clear-opcache