PHPackages                             pressjitsu/pj-object-cache-red - 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. pressjitsu/pj-object-cache-red

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

pressjitsu/pj-object-cache-red
==============================

The fastest known WordPress Redis-based Object Cache.

1.2(5y ago)971.9k17[10 issues](https://github.com/pressjitsu/pj-object-cache-red/issues)[1 PRs](https://github.com/pressjitsu/pj-object-cache-red/pulls)GPL-3.0+PHPPHP &gt;=5.3

Since Feb 21Pushed 4y ago9 watchersCompare

[ Source](https://github.com/pressjitsu/pj-object-cache-red)[ Packagist](https://packagist.org/packages/pressjitsu/pj-object-cache-red)[ Docs](https://pressjitsu.com/blog/redis-object-cache-wordpress/)[ RSS](/packages/pressjitsu-pj-object-cache-red/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Overview
--------

[](#overview)

A highly efficient, predictive and unit tested WordPress object cache backend that implements all available methods using the Redis PECL library.

Why is this fork better?
========================

[](#why-is-this-fork-better)

- Preloads known cache keys via a single `mget()` call with lazy unserialization
- Further microoptimized routines makes this the **fastest** Redis object cache implementation out there
- Unit-tested with 100% effective target coverage

For more information check out

Authors
-------

[](#authors)

- Pressjitsu, Inc.
- Gennady Kovshenin
- Eric Mann
- Erick Hitter

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

[](#installation)

1. Install and configure Redis. There is a good tutorial [here](https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-debian-9).
2. Install the [Redis PECL module](http://pecl.php.net/package/redis) or compile from [source](https://github.com/phpredis/phpredis).
3. Add `object-cache.php` to the wp-content directory. It is a drop-in file, not a plugin, so it belongs in the wp-content directory, not the plugins directory.
4. By default, the script will connect to Redis at 127.0.0.1:6379. See the *Connecting to Redis* section for further options.

### Connecting to Redis

[](#connecting-to-redis)

By default, the plugin uses `127.0.0.1` and `6379` as the default host and port when creating a new client instance; the default database of `0` is also used. Three constants are provided to override these default values.

Specify `WP_REDIS_BACKEND_HOST`, `WP_REDIS_BACKEND_PORT`, and `WP_REDIS_BACKEND_DB` to set the necessary, non-default connection values for your Redis instance.

### Prefixing Cache Keys

[](#prefixing-cache-keys)

The constant `WP_CACHE_KEY_SALT` is provided to add a prefix to all cache keys used by the plugin. If running two single instances of WordPress from the same Redis instance, this constant could be used to avoid overlap in cache keys. Note that special handling is not needed for WordPress Multisite.

Support
-------

[](#support)

Support for this plugin can be had over at

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~122 days

Total

2

Last Release

2146d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/113c5f9278504b2e6d55fce1f8412914ed6328ff34c3b9e099493e36d2f875b7?d=identicon)[soulseekah](/maintainers/soulseekah)

---

Top Contributors

[![soulseekah](https://avatars.githubusercontent.com/u/685880?v=4)](https://github.com/soulseekah "soulseekah (45 commits)")[![ethitter](https://avatars.githubusercontent.com/u/321503?v=4)](https://github.com/ethitter "ethitter (33 commits)")[![ericmann](https://avatars.githubusercontent.com/u/605474?v=4)](https://github.com/ericmann "ericmann (15 commits)")[![pj-dave](https://avatars.githubusercontent.com/u/16899510?v=4)](https://github.com/pj-dave "pj-dave (14 commits)")[![ocean90](https://avatars.githubusercontent.com/u/617637?v=4)](https://github.com/ocean90 "ocean90 (3 commits)")[![hans2103](https://avatars.githubusercontent.com/u/639822?v=4)](https://github.com/hans2103 "hans2103 (3 commits)")[![tillkruess](https://avatars.githubusercontent.com/u/43051830?v=4)](https://github.com/tillkruess "tillkruess (2 commits)")[![msigley](https://avatars.githubusercontent.com/u/4201801?v=4)](https://github.com/msigley "msigley (1 commits)")[![grappler](https://avatars.githubusercontent.com/u/1785641?v=4)](https://github.com/grappler "grappler (1 commits)")[![wkhayrattee](https://avatars.githubusercontent.com/u/7369626?v=4)](https://github.com/wkhayrattee "wkhayrattee (1 commits)")

---

Tags

cacherediswordpressperformanceredisobject-cache

### Embed Badge

![Health badge](/badges/pressjitsu-pj-object-cache-red/health.svg)

```
[![Health](https://phpackages.com/badges/pressjitsu-pj-object-cache-red/health.svg)](https://phpackages.com/packages/pressjitsu-pj-object-cache-red)
```

###  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)[clue/redis-protocol

A streaming Redis protocol (RESP) parser and serializer written in pure PHP.

5311.0M13](/packages/clue-redis-protocol)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33313.0k](/packages/anahkiasen-flatten)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23817.0k1](/packages/rtcamp-nginx-helper)[bnomei/kirby3-redis-cachedriver

Advanced Redis cache-driver with in-memory store, transactions and preloading

101.7k](/packages/bnomei-kirby3-redis-cachedriver)

PHPackages © 2026

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