What Is a Redis Object Cache?

Category: Performance & CDN ยท Updated 2026-11-04

A Redis object cache stores the results of repeated, expensive database queries in fast in-memory storage, so an application can reuse that result instead of querying the database again on every page load. It is persistent across requests and shared across all PHP processes on a server, which is what makes it more effective for a busy dynamic site than the basic, per-request object cache that comes built into WordPress by default.

Object caching vs. page caching

Page caching stores a complete, ready-to-serve copy of a whole rendered page, which works well for content that looks the same for every visitor. Object caching works at a lower level: it stores the result of individual, often-repeated operations, such as a specific database query or a computed value, so that even dynamic pages, personalized content, or logged-in areas that cannot use a full page cache can still skip redundant work on the backend. The two techniques solve different problems and are commonly used together.

Why Redis specifically

WordPress and many other applications include a basic object cache by default, but it only lasts for a single page request and is not shared between visitors or between the many separate PHP processes handling simultaneous requests. Redis is an in-memory key-value data store that persists between requests and can be shared across every process on the server, so a value computed once for one visitor can be reused for the next visitor's request a moment later, without hitting the database again.

How it typically works with WordPress

ComponentRole
Redis serverRuns in memory on the server, listening by default on port 6379
object-cache.php drop-inPlaced in wp-content/, replaces WordPress's default per-request cache with calls to Redis
A caching pluginInstalls and manages the drop-in, and usually adds a status page, such as the Redis Object Cache plugin

Once connected, repeated queries such as site options, menus, and other frequently requested data are served from Redis instead of running the same database query again on every page load.

Checking whether it is actually working

wp redis status
wp redis cli ping

Using WP-CLI, these commands confirm the object cache drop-in is active and that the Redis server is responding. A plugin's admin page, or a debugging tool like Query Monitor, can also show the current hit rate: a high ratio of cache hits to misses indicates the cache is reducing database load effectively.

When it helps and when it does not

  • Helps most on sites with heavy database use that page caching alone cannot cover: logged-in areas, membership sites, WooCommerce carts, or any page personalized per visitor.
  • Helps less on small, mostly static sites that are already well served by a full-page cache, since there are fewer repeated database queries left to save.
  • Needs memory: Redis stores data in RAM, so it adds a memory requirement to the server that a plan without enough available memory may not comfortably support.

Frequently asked questions

What does a Redis object cache actually cache?

It caches the results of specific, repeated operations, most often database query results, so the same data does not need to be recalculated or re-queried on every page load.

Is Redis object caching the same as page caching?

No. Page caching stores a full rendered page for reuse, while object caching stores individual query or computation results, which helps even on dynamic or logged-in pages that cannot be fully page-cached.

Do I need Redis for a small WordPress site?

Not usually. A small, mostly static site is typically well served by page caching alone, and the extra memory and setup Redis requires may not pay off until database queries become a real bottleneck.

What is the difference between Redis and Memcached?

Both are in-memory caching systems with a similar purpose. Redis offers more data types and optional persistence to disk, while Memcached is simpler and purely in-memory; either can work well as a WordPress object cache backend.

How do I know if my Redis object cache is working?

Use a command like "wp redis status" with WP-CLI, or check a caching plugin's status page for a hit rate, which shows the proportion of requests served from cache instead of hitting the database again.

Is Redis a replacement for a CDN?

No. A CDN serves static files from locations closer to each visitor, while Redis caches backend data on the origin server itself. They solve different performance problems and are often used together.

Related topics