wearerequired/wp-cli-clear-opcache

Use WP-CLI to clear the OPcache for a site via HTTP.

Installs: 26 353

Dependents: 0

Suggesters: 1

Security: 0

Stars: 16

Watchers: 2

Forks: 3

Open Issues: 1

Type:wordpress-plugin

1.0.1 2017-12-06 17:35 UTC

This package is auto-updated.

Last update: 2024-04-10 06:16:42 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.