Redis object cache is often enabled as if it were a performance switch: connect WordPress, confirm the status is green and assume the database will stay fast. That shortcut works only while the memory model, eviction rules and workload happen to agree. Under pressure, the same cache can discard useful data, multiply database queries and make performance less predictable than it was before.
The problem is not that Redis is unsuitable for WordPress. The problem is operating it without knowing which keys it holds, how much memory it may use, what happens when that limit is reached and how the application behaves after a miss.
Redis Is a Cache Layer, Not a Performance Guarantee
WordPress has an object-cache interface for data that is expensive to regenerate, including results derived from database queries. By default, that cache lasts only for the current request. A persistent backend such as Redis allows cached objects to survive across requests, reducing repeated work when the data is still valid.
Persistence across requests does not mean the cache is the source of truth. Correctly designed cached data can be regenerated from the database or application. The operational challenge is ensuring that regeneration remains safe when many useful keys disappear together.
A healthy design therefore considers both the hit path and the miss path. Fast hits are attractive, but a sudden wave of misses can be more expensive than running without the cache if every request tries to rebuild the same objects.
A cache is only an optimisation when the system remains controlled as keys expire, disappear or are evicted.
Start With Memory and Eviction Evidence
Do not begin by changing the eviction policy. Capture the current configuration and counters first. At minimum, inspect memory use, the configured limit, the active policy, total evictions and the balance between keyspace hits and misses.
redis-cli INFO memory
redis-cli INFO stats
redis-cli CONFIG GET maxmemory
redis-cli CONFIG GET maxmemory-policy
Read these values over time, not from one quiet moment. Memory pressure during checkout traffic, imports, scheduled jobs or admin activity may look completely different from the baseline. Track evicted_keys as a rate and align spikes with application latency and database load.
The hit ratio is useful, but it is not a verdict by itself. A high overall ratio can hide repeated misses for a small group of expensive objects. A lower ratio can be acceptable when misses are cheap. Pair the Redis counters with WordPress request time, database query evidence and business transactions.
Choose a Policy for the Keys You Actually Have
Redis begins enforcing its configured policy when data exceeds maxmemory. An allkeys policy can choose from the complete keyspace. A volatile policy chooses only keys with an expiry. With noeviction, writes that require more memory fail instead of removing existing keys.
There is no responsible policy recommendation without a key inventory. If important cache keys do not have an expiry, a volatile policy may have very few candidates and can behave like no eviction. If the instance mixes disposable cache entries with data someone mistakenly treats as durable, an allkeys policy may remove keys that another workload expected to retain.
Review how the WordPress cache drop-in assigns expiries and prefixes, whether other applications share the instance, and whether any plugin stores coordination or session-like data in the same space. The policy must match the real keys, not the diagram used when the server was built.
NinjaWeb’s managed WordPress hosting treats cache policy as part of the application stack, with ownership and monitoring rather than a one-time plugin toggle.
Watch for Cache-Miss Amplification
Eviction is not automatically a failure. Cache entries are designed to disappear. The risk appears when useful keys are evicted faster than the application can reuse them, or when many requests regenerate the same expensive value at once.
Look for three signals together:
evicted_keysincreases during the incident window;- keyspace misses rise while the hit rate falls or changes sharply;
- database CPU, query time or concurrent connections rise after the cache pressure begins.
That sequence supports a stronger diagnosis than “Redis is full.” It shows the business effect of memory pressure. On WooCommerce, the visible symptom may be slow product queries, delayed admin screens or inconsistent response time during order activity.
Separate Sites and Workloads Deliberately
A shared Redis instance can make a small configuration error affect several sites. Prefixes help prevent key-name collisions, but they do not create separate memory limits or independent eviction behaviour. One noisy workload can pressure the shared pool and force useful keys from another site to disappear.
Document every client of the instance, its namespace, expected key volume, expiry behaviour and business criticality. Separate workloads when they require different policies, independent capacity or a clearer failure boundary. Isolation is especially valuable when a development or staging site shares infrastructure with production.
Also document persistence expectations. Redis persistence and replication are separate operational decisions from WordPress object caching. Do not enable them blindly, and do not let a team assume cached WordPress objects are a backup of the database.
Change One Variable and Test Recovery
Never flush a production cache casually during diagnosis. A flush can remove the evidence, create a thundering herd of rebuild work and turn a small performance issue into an outage. If a flush is genuinely required, plan the traffic window, database headroom, rollback path and monitoring first.
Test one controlled change at a time: memory limit, policy, site isolation, expiry behaviour or application code. Record the previous value and verify it can be restored. Then repeat representative page, admin and transaction paths while watching Redis, PHP and database metrics together.
A successful change reduces the relevant evictions or expensive misses without hiding a new problem elsewhere. One fast homepage request is not proof. The test should include the workload that originally triggered the pressure and enough repetition to warm the cache naturally.
For sites that have outgrown shared assumptions, an Australian VPS environment can provide clearer resource ownership and monitoring, but the Redis rules still need to be designed and verified.
Give the Cache an Operational Owner
Redis becomes risky when everyone can enable it but nobody owns capacity, policy and recovery. Assign responsibility for the instance, the WordPress drop-in, key isolation, alerts and change records. Define what level of evictions, memory use, latency or misses requires investigation.
Keep a short evidence sheet with the instance clients, maxmemory, policy, normal memory range, baseline hit ratio and the commands used during an incident. Update it after migrations and major plugin changes.
If the cache is green while the website is getting worse, ask NinjaWeb to test the Redis and database path together. The objective is not to keep Redis enabled at any cost. It is to prove that the cache reduces work, fails safely and remains predictable under real traffic.

