wearerequired / wp-cli-clear-opcache
Use WP-CLI to clear the OPcache for a site via HTTP.
Package info
github.com/wearerequired/wp-cli-clear-opcache
Type:wordpress-plugin
pkg:composer/wearerequired/wp-cli-clear-opcache
1.0.1
2017-12-06 17:35 UTC
Requires
- php: >=7.0
- ext-zend-opcache: *
Suggests
- wp-cli/wp-cli: Adds a command line interface to WordPress
This package is auto-updated.
Last update: 2026-02-10 10:16:15 UTC
README
Use WP-CLI to clear the OPcache for a site via HTTP.
Usage
# Clear the OPcache for the website.
$ wp opcache clear
# Invalidate a cached script.
$ wp opcache invalidate 'foo/bar.php'
Installation
Installing this package requires WP-CLI to be installed on your server. Update to the latest stable release with wp cli update.
Once you've done so, you can install this plugin with composer require wearerequired/wp-cli-clear-opcache.