🔧 Use WP-CLI to clear the OPcache for a site via HTTP.
Find a file
2017-12-06 18:35:37 +01:00
inc Remove void type hints 2017-11-13 22:06:44 +01:00
.editorconfig Initial commit 2017-07-12 17:47:29 -04:00
.gitignore Initial commit 2017-07-12 17:47:29 -04:00
composer.json Update authors 2017-09-14 09:28:02 +02:00
LICENSE.txt Initial commit 2017-07-12 17:47:29 -04:00
README.md Update readme to include new command 2017-09-13 18:28:29 +02:00
wp-cli-clear-opcache.php Bump version to 1.0.1 2017-12-06 18:35:37 +01:00

WP-CLI Clear OPcache

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.