✓ 99.9% UPTIME ✓ 24/7 SUPPORT ✓ SINCE 2016 Status Looking Glass +92 312 6565434
Performance · 2026-11-21 · Zain Ul Abddin

Redis object cache for WordPress: when it helps and when it hurts

What Redis actually caches in WordPress, the plugins that use it well, memory sizing, and the WooCommerce cases where it causes stale carts.

Server storage and memory used for caching

Redis is sold as a magic speed switch. In reality it caches one specific thing — database query results and transients — and whether that helps depends on how many queries your pages run and whether they can safely be reused across visitors.

What it caches

WordPress builds every page by querying MySQL. An object cache stores the results of those queries in memory so the next request skips the database. Redis (or Memcached) holds that cache outside PHP, so it survives between requests and can be shared across PHP workers.

It does not cache the HTML page itself. That is page caching (nginx fastcgi, LiteSpeed cache, a CDN). The two work together: page cache serves the request, object cache speeds up the requests that miss it.

When it clearly helps

  • WooCommerce catalogues with many variations and filters.
  • Membership or LMS sites where page cache cannot apply to logged-in users.
  • Admin-heavy sites — the dashboard runs dozens of queries per screen.
  • Sites with plugins that hammer wp_options and transients.

When it does nothing — or hurts

  • A brochure site with page cache and few queries. You are adding a service to maintain for no gain.
  • WooCommerce carts if the cache is not cart-aware: customers see stale quantities. Use a plugin that flushes on cart changes, or keep carts out of the object cache.
  • Low memory servers: Redis competes with MySQL for RAM and the kernel starts swapping.

Symptom to watch for: “my cart shows the wrong total after I change quantity” — usually an object cache key that ignores the session.

Sizing and config

Start with 128–256 MB maxmemory and allkeys-lru eviction for a cache-only instance. Set maxmemory-policy noeviction only if you use Redis for queues or sessions, because silent eviction there loses data.

redis-cli info memory | grep used_memory_human
redis-cli info stats | grep keyspace_hits

A hit rate under ~80% usually means the cache is too small, the TTL is too short, or something is flushing it constantly.

Setup order that works

  1. Fix the slow part first: enable page cache and check TTFB.
  2. Profile with Query Monitor — how many queries, which plugin.
  3. Add Redis only if queries remain high on uncached requests.
  4. Install one object-cache plugin (Redis Object Cache or LiteSpeed's), enable it, and watch hit rate for a week.
  5. Flush on deploy and on product/price changes if you run a store.

On our stack

We install Redis with a memory cap sized to the plan, wire the drop-in, and leave page caching to nginx or LiteSpeed. If you are on a 2 GB box, 128 MB for Redis is usually the right ceiling; on 4 GB, 256–384 MB. See WordPress hosting or the KVM VPS line.

Questions from readers

Does Redis make WordPress faster automatically?

No. It speeds up database queries. If page caching already serves most requests, the gain is small.

How much RAM should Redis use?

128–256 MB for a typical site; 256–384 MB on a busy WooCommerce store with 4 GB total.

Why is my WooCommerce cart wrong after enabling Redis?

The object cache is serving stale cart data. Use a cart-aware configuration or exclude cart keys from caching.

Need this set up for you?

Managed VPS and Windows RDP from $12.50/mo, with the stack installed before handover.

Chat on WhatsApp See prices