An open API service indexing awesome lists of open source software.

https://github.com/beapi/wp-reset-opcache

Command to clear opcache on one or more servers
https://github.com/beapi/wp-reset-opcache

Last synced: 9 months ago
JSON representation

Command to clear opcache on one or more servers

Awesome Lists containing this project

README

          

# 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