Redis Object Cache Drop-In
Provides a high-performance persistent object cache for WordPress using Redis.
by newfold-labs · github.com/newfold-labs/wp-drop-in-redis-object-cache
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/newfold-labs/wp-drop-in-redis-object-cache/archive/refs/heads/main.zip<img src="https://newfold.com/content/experience-fragments/newfold/site-header/master/_jcr_content/root/header/logo.coreimg.svg/1621395071423/newfold-digital.svg" alt="Newfold Logo" title="Newfold Digital" align="right" height="42" />
WordPress Redis Object Cache Drop-In
A persistent object cache drop-in for WordPress powered by Redis. Replaces the default in-memory object cache with a Redis-backed implementation for improved performance across page loads.
Features
- Supports PhpRedis, Predis, and Credis client libraries
- Redis Cluster, Sentinel, Replication, and Sharding support
- Selective flush via key prefix (
WP_REDIS_PREFIX) - Per-group flush and unflushable groups
- Batch operations (
add_multiple,set_multiple,get_multiple,delete_multiple) - Optional igbinary serialization
- Graceful fallback to in-memory cache on connection failure
Requirements
- WordPress 5.0+
- PHP 7.2+
- Redis server
- A supported Redis client library (PhpRedis extension, Predis, or Credis)
Installation
Place object-cache.php in your WordPress wp-content/ directory.
License
GPL-3.0-or-later