Skip to content

BeAPI/wp-reset-opcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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