If you run a busy WordPress site, you’ve probably seen “add a persistent object cache” flagged in Site Health or recommended by your host. A Redis object cache in WordPress is one of the most effective ways to make a dynamic site feel instant — but it’s also widely misunderstood. It’s not a page cache, it won’t magically fix every slow page, and plenty of small blogs don’t strictly need one.
This guide explains what a Redis object cache actually does, how it’s different from the page caching you already know, who genuinely benefits, and how to turn one on without over-complicating your stack.
What is a Redis object cache in WordPress?
Every time WordPress builds a page, it runs dozens — sometimes hundreds — of database queries. It looks up your site options, the active theme’s settings, plugin configuration, user metadata, menus, widgets, and more. Many of those queries return the same answer over and over.
WordPress already has a feature called the object cache that stores those query results in memory so they don’t have to be fetched from the database repeatedly. The catch: by default this cache is non-persistent. It lives only for the duration of a single page load, then it’s thrown away. The next visitor starts from scratch.
A Redis object cache makes that cache persistent. Redis is a fast, in-memory data store that runs on your server. When you connect WordPress to Redis via a drop-in file (object-cache.php), query results are saved in Redis and reused across every request, every visitor, and every page — until they change. Instead of asking MySQL the same questions all day, WordPress asks its own fast memory first.
In plain terms: a page cache saves finished HTML; a Redis object cache wordpress setup saves the raw ingredients WordPress uses to build that HTML. That distinction matters a lot, and it’s the source of most confusion.
Object cache vs page cache vs CDN
These three layers solve different problems, and the best sites use all of them together rather than choosing one. Here’s the short version:
- Page cache: Stores the fully rendered HTML of a page and serves it instantly, usually before WordPress even fully boots. Best for anonymous visitors on pages that don’t change per user.
- Object cache (Redis): Stores individual database query results in memory. It speeds up the dynamic parts of your site — logged-in dashboards, WooCommerce carts, admin screens, and any page that can’t be fully page-cached.
- CDN: Copies your static files (images, CSS, JS) and sometimes full pages to servers around the world so they load from a location near the visitor.
The key insight: a page cache is fantastic for logged-out traffic, but it does nothing for logged-in users, dynamic requests, or admin work — because those pages get skipped by the page cache on purpose. That’s exactly where a Redis object cache earns its keep. We break this down further in our dedicated guide on page cache vs object cache vs CDN.
Do you actually need a Redis object cache?
Not every site does. Be honest about which category you’re in.
You probably don’t need Redis if…
- You run a mostly static blog or brochure site with few logged-in users.
- Your traffic is modest and your pages are already served by a good page cache.
- Your host runs on cheap shared hosting where Redis isn’t available or isn’t well-resourced.
For those sites, a solid full-page HTML cache plus image and CSS/JS optimization delivers the biggest wins. Object caching adds complexity for a small gain.
You’ll likely benefit from Redis if…
- You run WooCommerce or any store — carts, checkout, and account pages are dynamic and can’t be page-cached, so they hit the database hard on every request.
- You have membership, LMS, forum, or community features with lots of logged-in users.
- Your site has a large
wp_optionstable, many plugins, or heavy queries that show up in slow-query logs. - You see high database CPU or slow admin/backend performance under load.
In these cases a persistent object cache can dramatically cut database load and make the “uncacheable” parts of your site — the ones that frustrate store owners most — feel far snappier. If you run a shop, pair this with our guide on how to speed up WooCommerce without breaking checkout.
Which WordPress caching tools include a Redis object cache?
This is where a lot of people get tripped up. Many of the most popular caching plugins are page cache plugins and do not ship a built-in object cache at all — you’re expected to install a separate object-cache plugin and wire up Redis yourself.
Here’s an honest, feature-presence comparison of well-known WordPress performance tools (trademarks belong to their owners):
| Tool | Built-in Redis object cache | Full-page cache | Image optimization included | Notes |
|---|---|---|---|---|
| Speed of Light | Yes (native drop-in + GUI) | Yes (disk + Cloudflare edge) | Yes (on your own server) | Object, disk, and edge caching in one license |
| WP Rocket | No | Yes | Add-on (Imagify, separate) | CDN is a separate subscription |
| FlyingPress | No | Yes | Yes | No object cache or auto-config engine |
| LiteSpeed Cache | Yes | Yes | Via QUIC.cloud (metered) | Full strength needs a LiteSpeed server |
| W3 Total Cache | Yes | Yes | No | Very configurable, but manual setup |
| Perfmatters | No | No | No | Script manager — runs alongside a cache plugin |
| NitroPack | No | Yes (cloud) | Yes (metered) | Cloud SaaS, usage-metered |
The takeaway: if a built-in Redis object cache matters to you, only a handful of tools actually include one. For a fuller ranking of the field, see our roundup of the best WordPress caching plugins in 2026, and our head-to-head on WP Rocket vs LiteSpeed vs FlyingPress.
How to set up a Redis object cache in WordPress
At a high level, enabling a Redis object cache involves three things:
- A Redis server. Redis has to be installed and running on your server (or a nearby managed instance). Many quality hosts offer it as a one-click add-on; some include it by default.
- A PHP Redis client. Your PHP needs the
phpredisextension (or a compatible client) so WordPress can talk to Redis. - A drop-in file. WordPress reads object caching from
wp-content/object-cache.php. A plugin generates this file and points it at your Redis instance.
Done manually, this can be fiddly — you’re editing config, testing connections, and hoping nothing silently falls back to the slow default. That’s why an integrated tool is the friendlier path for most people. With Speed of Light, the native Redis object cache ships with a GUI: it drops in object-cache.php for you, verifies the connection, and even applies value compression to keep memory use lean — no separate object-cache plugin required.
Once it’s active, you can confirm it worked in Tools → Site Health: the “persistent object cache” recommendation should disappear, replaced by confirmation that a persistent object cache is in use.
Where a Redis object cache fits in your speed stack
A Redis object cache is a powerful layer, but it’s one layer. To pass Core Web Vitals in WordPress, you also want a full-page cache for anonymous traffic, optimized images, and lean CSS and JavaScript. Object caching won’t shrink your images or defer your scripts — it makes the server-side build of dynamic pages faster, which shows up as lower Time to First Byte and a more responsive backend.
The cleanest setups combine all of these. Speed of Light was built around exactly that idea: in one license you get a disk full-page HTML cache served before WordPress boots, full-page Cloudflare edge caching that works on the free Cloudflare plan, and a native Redis object cache — plus image optimization (WebP by default, AVIF available, converted on your own server), Critical CSS and unused-CSS removal, ad-safe JavaScript delay/defer, self-hosted Google Fonts, and Smart Configuration that sets sensible defaults automatically. Caching is anonymous-only, so logged-in users are bypassed and WooCommerce carts and checkout are never cached.
The differentiator worth naming plainly: with most tools, object caching, disk caching, edge caching, and image optimization are things you assemble from add-ons and separate subscriptions. Here they’re one purchase, no metered services.
Frequently asked questions
Is a Redis object cache the same as a page cache?
No. A page cache stores the finished HTML of a page and serves it instantly to anonymous visitors. A Redis object cache stores individual database query results in memory so WordPress can rebuild dynamic pages faster. They complement each other — a page cache handles logged-out traffic, while the object cache speeds up logged-in users, admin screens, and WooCommerce pages that can’t be page-cached.
Will a Redis object cache speed up a small blog?
Usually only a little. If your blog is mostly static and already served by a good full-page cache, the biggest gains come from image and CSS/JS optimization, not object caching. Redis shines on database-heavy, logged-in, or WooCommerce sites where lots of dynamic queries repeat.
Do I need a separate plugin to use Redis with WordPress?
With many caching plugins, yes — they only handle page caching, so you’d add a dedicated object-cache plugin and configure Redis separately. Tools that include a built-in Redis object cache (such as Speed of Light, LiteSpeed Cache, and W3 Total Cache) let you enable it from within the same plugin, which avoids juggling multiple tools.
Is Redis object caching safe for WooCommerce?
Yes, when it’s implemented correctly. The object cache stores reusable query results, not personal cart contents, and a well-built setup ensures carts and checkout are never full-page cached. In fact, WooCommerce is one of the best use cases for Redis because its dynamic pages can’t be page-cached and otherwise hammer the database on every request.
What if my host doesn’t offer Redis?
Then you can’t run a Redis object cache on that server, but you’re not out of options — a strong disk page cache, edge caching, and image and asset optimization will still deliver most of the perceived speed for typical sites. If your traffic grows to the point where the database is the bottleneck, that’s the signal to move to a host that offers Redis.
Want object, disk, and Cloudflare edge caching — plus image and CSS/JS optimization — in a single plugin and a single license? Speed of Light includes a native Redis object cache with a simple GUI, no add-ons or metered services, starting at $49/year with a 14-day money-back guarantee.

