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
- Host: GitHub
- URL: https://github.com/beapi/wp-reset-opcache
- Owner: BeAPI
- License: mit
- Created: 2024-07-17T12:53:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-21T12:17:37.000Z (about 1 year ago)
- Last Synced: 2025-03-28T07:51:32.146Z (9 months ago)
- Language: PHP
- Size: 22.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
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