PHPackages                             kaiseki/wp-wp-rocket - 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. [Caching](/categories/caching)
4. /
5. kaiseki/wp-wp-rocket

ActiveLibrary[Caching](/categories/caching)

kaiseki/wp-wp-rocket
====================

Configure WP Rocket: disable automatic cache purging on term changes and tune cache preloading

1.0.0(1mo ago)0752MITPHPPHP ^8.2CI passing

Since Jun 1Pushed 3w ago2 watchersCompare

[ Source](https://github.com/kaisekidev/kaiseki-wp-wp-rocket)[ Packagist](https://packagist.org/packages/kaiseki/wp-wp-rocket)[ Docs](https://github.com/kaisekidev/kaiseki-wp-wp-rocket)[ RSS](/packages/kaiseki-wp-wp-rocket/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (16)Versions (5)Used By (0)

kaiseki/wp-wp-rocket
====================

[](#kaisekiwp-wp-rocket)

Configure WP Rocket: disable automatic cache purging on term changes and tune cache preloading.

Two `kaiseki/wp-hook` `HookProviderInterface`s wired through `ConfigProvider`, both no-ops unless configured (and unless WP Rocket is active):

- **`DisableAutoPurge`** — stops WP Rocket from purging the cache on term create/edit/delete and after saving dynamic lists.
- **`PreloadConfigurator`** — overrides the preload batch size, cron interval and delay between requests (config values, or the `WP_ROCKET_PRELOAD_*` constants if defined).

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

[](#installation)

```
composer require kaiseki/wp-wp-rocket
```

Requires PHP 8.2 or newer.

Usage
-----

[](#usage)

Register `ConfigProvider` with your laminas-style config aggregator, configure the `wp_rocket` key with the fluent config objects, and activate the providers via `kaiseki/wp-hook`:

```
use Kaiseki\WordPress\WpRocket\DisableAutoPurge\DisableAutoPurge;
use Kaiseki\WordPress\WpRocket\DisableAutoPurge\DisableAutoPurgeConfig;
use Kaiseki\WordPress\WpRocket\PreloadConfigurator\PreloadConfigurator;
use Kaiseki\WordPress\WpRocket\PreloadConfigurator\PreloadConfig;

return [
    'wp_rocket' => [
        'preload_config' => PreloadConfig::create()
            ->withBatchSize(45)
            ->withCronInterval(60)
            ->withRequestsDelay(0.5),
        'disable_auto_purge' => DisableAutoPurgeConfig::create()
            ->onTermChange()
            ->onRocketAfterSaveDynamicLists(),
    ],
    'hook' => [
        'provider' => [
            DisableAutoPurge::class,
            PreloadConfigurator::class,
        ],
    ],
];
```

`ConfigProvider` registers a factory for each provider; each reads its `wp_rocket.*` config object from the container and is inert when that config is absent.

Development
-----------

[](#development)

```
composer install
composer check   # check-deps, cs-check, phpstan
```

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance94

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% 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

Unknown

Total

1

Last Release

33d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c3a6b11aea9668c9e9ca0c0f8515ef114d344acb552c695d715d35d5b388ea4?d=identicon)[woda](/maintainers/woda)

---

Top Contributors

[![wolfgangschaefer](https://avatars.githubusercontent.com/u/26325205?v=4)](https://github.com/wolfgangschaefer "wolfgangschaefer (7 commits)")[![davidmondok](https://avatars.githubusercontent.com/u/3883758?v=4)](https://github.com/davidmondok "davidmondok (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

wordpressmodule

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kaiseki-wp-wp-rocket/health.svg)

```
[![Health](https://phpackages.com/badges/kaiseki-wp-wp-rocket/health.svg)](https://phpackages.com/packages/kaiseki-wp-wp-rocket)
```

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M339](/packages/api-platform-core)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[api-platform/state

API Platform state interfaces

274.9M136](/packages/api-platform-state)[wikimedia/parsoid

Parsoid, a bidirectional parser between wikitext and HTML5

187557.3k3](/packages/wikimedia-parsoid)[testo/testo

A lightweight PHP testing framework.

1959.3k64](/packages/testo-testo)

PHPackages © 2026

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