PHPackages                             wearerequired/wp-cli-clear-opcache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. wearerequired/wp-cli-clear-opcache

ActiveWordpress-plugin[CLI &amp; Console](/categories/cli)

wearerequired/wp-cli-clear-opcache
==================================

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

1.0.1(8y ago)1735.6k—8.3%3[1 PRs](https://github.com/wearerequired/wp-cli-clear-opcache/pulls)GPL-2.0+PHPPHP &gt;=7.0

Since Sep 14Pushed 2y agoCompare

[ Source](https://github.com/wearerequired/wp-cli-clear-opcache)[ Packagist](https://packagist.org/packages/wearerequired/wp-cli-clear-opcache)[ Docs](https://github.com/wearerequired/wp-cli-clear-opcache)[ RSS](/packages/wearerequired-wp-cli-clear-opcache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

WP-CLI Clear OPcache
====================

[](#wp-cli-clear-opcache)

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

Usage
-----

[](#usage)

```
# Clear the OPcache for the website.
$ wp opcache clear

# Invalidate a cached script.
$ wp opcache invalidate 'foo/bar.php'

```

Installation
------------

[](#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`.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 54.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~83 days

Total

2

Last Release

3085d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1446895?v=4)[required](/maintainers/wearerequired)[@wearerequired](https://github.com/wearerequired)

---

Top Contributors

[![swissspidy](https://avatars.githubusercontent.com/u/841956?v=4)](https://github.com/swissspidy "swissspidy (18 commits)")[![ocean90](https://avatars.githubusercontent.com/u/617637?v=4)](https://github.com/ocean90 "ocean90 (15 commits)")

---

Tags

opcachewordpress-pluginwp-cliwordpresswp-cliOpcache

### Embed Badge

![Health badge](/badges/wearerequired-wp-cli-clear-opcache/health.svg)

```
[![Health](https://phpackages.com/badges/wearerequired-wp-cli-clear-opcache/health.svg)](https://phpackages.com/packages/wearerequired-wp-cli-clear-opcache)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[smart-core/accelerator-cache-bundle

Provides a command line task to clear PHP Accelerators cache from the console

671.4M3](/packages/smart-core-accelerator-cache-bundle)[wpsh/wp-cli-replicator

3581.7k](/packages/wpsh-wp-cli-replicator)[frozzare/wp-cli-media-restore

Restore media attachments using WP CLI

2010.5k](/packages/frozzare-wp-cli-media-restore)[wp-cli/wp-super-cache-cli

Add a `wp super-cache` command to support the WP Super Cache plug-in

5719.9k](/packages/wp-cli-wp-super-cache-cli)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
