PHPackages                             spiritedmedia/redis-full-page-cache-purger - 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. spiritedmedia/redis-full-page-cache-purger

ActiveWordpress-plugin[Caching](/categories/caching)

spiritedmedia/redis-full-page-cache-purger
==========================================

Purges keys from Redis when certain WordPress events happen. Pairs well with EasyEngine.

1137PHP

Since Feb 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/spiritedmedia/redis-full-page-cache-purger)[ Packagist](https://packagist.org/packages/spiritedmedia/redis-full-page-cache-purger)[ RSS](/packages/spiritedmedia-redis-full-page-cache-purger/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Redis Full Page Cache Purger
============================

[](#redis-full-page-cache-purger)

Purges keys from Redis when certain WordPress events happen. Pairs well with [EasyEngine](https://easyengine.io/). Based off of the [nginx Helper plugin](https://github.com/rtCamp/nginx-helper). There is no UI. Everything can be configured using constants, actions, and filters.

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

[](#installation)

via Composer

```
composer require spiritedmedia/redis-full-page-cache-purger

```

or manually download this plugin and place it in your `/wp-content/plugins/` folder

How does it work?
-----------------

[](#how-does-it-work)

When certain actions in WordPress happen (update post, edit term etc.) we determine URLs that need to be flushed and then tell Redis to delete the keys. URLs are transformed into a key that Redis uses to store the full page contents for caching purposes based off of the [Open Resty SRCache nginx module](https://github.com/rtCamp/nginx-helper). Redis purgers can hook into two actions which handle actually talking to Redis and deleting keys.

Constants
---------

[](#constants)

- `REDIS_CACHE_PURGE_PLUGIN_DIR_PATH` - The main path of the plugin for including other files. Default: `plugin_dir_path( __FILE__ )`
- `REDIS_CACHE_PURGE_PREFIX` - The prefix used for the cache key. Default: `nginx-cache:`
- `REDIS_CACHE_PURGE_HOST` - Host or URL to connect to Redis. Default: `127.0.0.1`
- `REDIS_CACHE_PURGE_PORT` - Port for connecting to Redis. Default: `6379`

Actions
-------

[](#actions)

- `redis_cache_purge/purge_single_key` - Hook for a purger to listen for single keys to purge from Redis. A cache key is passed like `nginx-cache:httpGETexample.com/`
- `redis_cache_purge/purge_wildcard_key` - Hook for a purger to listen for a wildcard key to purge from Redis. A cache key is passed like `nginx-cache:httpGETexample.com*`

Filters
-------

[](#filters)

- `redis_cache_purge/purge_comment` - URLs to be purged when a comment is added or edited. Arguments: `$url`, `$comment`
- `redis_cache_purge/purge_user` - URLs to be purged when a user is deleted. Arguments: `$url`, `$user_id`
- `redis_cache_purge/purge_post` - URLs to be purged when a post is edited. Arguments: `$urls`, `$post`
- `redis_cache_purge/cache_prefix` - The cache key prefix. Arguments: `REDIS_CACHE_PURGE_PREFIX` (The default cache prefix)
- `redis_cache_purge/cache_key` - The cache key to purge from Redis. Arguments: `$cache_key`, `$url`, `$prefix`
- `redis_cache_purge/purge_all` - URL to be purged when all URLs are requested to be purged. Arguments: `$url`

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/b523a37c0496cd23d8c8780e5266a42f2aad4f7f8bfacfa2dbb72bfa6d7f12ca?d=identicon)[kingkool68](/maintainers/kingkool68)

---

Top Contributors

[![kingkool68](https://avatars.githubusercontent.com/u/867430?v=4)](https://github.com/kingkool68 "kingkool68 (17 commits)")

### Embed Badge

![Health badge](/badges/spiritedmedia-redis-full-page-cache-purger/health.svg)

```
[![Health](https://phpackages.com/badges/spiritedmedia-redis-full-page-cache-purger/health.svg)](https://phpackages.com/packages/spiritedmedia-redis-full-page-cache-purger)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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