Blog
Caching notes.
Practical notes on page caching, object caching and Redis for WordPress. Find the problem you have, follow the checks, take what helps.
News · 30 November 2026
ARC has a home
Ace Redis Cache has lived in a GitHub repository for over a year, and in production for a good while longer. Today it gets a proper home, with how it works, what it needs and the numbers behind it in one place.
3 minute readObject cache · 30 November 2026
Why a WordPress transient is not saving with a Redis object cache
You call set_transient(), it returns, and the next request finds nothing. With a persistent object cache there are five common reasons, and none of them raises an error. Work through them in this order.
5 minute readObject cache · 30 November 2026
Stop a WordPress cache stampede with a lock that actually locks
The usual WordPress lock checks a transient and then sets it. Under load, two requests pass the check together and both do the work. Here is why that happens, three locks that hold, and a test that proves it.
5 minute readWooCommerce · 30 November 2026
Page caching a WooCommerce shop: baskets, stock and prices
A shop's product pages are the same for most visitors and worth caching. The basket, the stock level and the price are not always the same, and each breaks a page cache in its own way. Here are the three journeys to test, and what to do about each.
5 minute readCache operations · 30 November 2026
Which pages should the Redis warmer visit first?
If a Redis page cache has eight empty places in its next warming batch, which URLs would you give them to? It depends on whether yesterday’s popular pages still attract visitors today.
1 minute readRedis · 30 November 2026
What happens to WordPress when Redis goes down
A cache should make a site faster when it works and change nothing when it does not. Whether that is true of yours depends on timeouts, on what the code does with a failure, and on what it clears afterwards. Here is how to find out before Redis does it for you.
5 minute readWordPress operations · 30 November 2026
Why OPcache priming can compile zero files
The same theme can appear twice in a short list of PHP files to prime. If WordPress has already loaded its functions.php, compiling it again is wasted work. In Ace Redis Cache 0.11.1 the hot-file primer checks what PHP has already loaded before asking OPcache to compile anything.
1 minute readRedis operations · 30 November 2026
Warm the missing pages after a release
After a release, the home page is usually the first URL someone checks. The quiet archive three clicks away may still be cold. In 0.11.0 I can check both without asking WordPress to rebuild pages already in Redis.
1 minute readVarnish · 30 November 2026
Varnish in front of a WordPress page cache: purge both or serve old pages
Two caches holding the same page is a good set-up until somebody edits the page. Then the inner cache updates and the outer one carries on serving the old copy. Here are the rules that keep Varnish and a WordPress page cache in step.
5 minute readRedis · 30 November 2026
Sharing one Redis between several WordPress sites
One Redis can serve many WordPress sites well, as long as every operation knows which site it belongs to. Reads and writes usually do. Clears, counters and background jobs are where one site empties another's cache. Here is what to check.
5 minute readCaching · 30 November 2026
Serve the stale page while you rebuild it
When a cached page expires, somebody has to wait for WordPress to build it again. It does not have to be a visitor. Here is how serving stale works, and the limits that keep it from hurting.
2 minute readRedis · 30 November 2026
How long should a Redis key live? Lifetimes, caps and cold keys
When Redis fills up, the instinct is to add memory. Often the memory is full of things nobody will read again. Here is how to see what your keys are doing, and why a cap on lifetimes helps more than a bigger server.
4 minute readDiagnostics · 30 November 2026
HIT, MISS or BYPASS: how to read your page cache's response headers
The quickest way to find out whether a page is cached, and why not, is to ask the server. One curl command shows what the cache did with your request. Here is how to read the answer and what to do about each one.
6 minute readCaching · 30 November 2026
Page cache and object cache: what each one does for WordPress
They sound alike and they solve different problems. One stops WordPress running at all. The other makes WordPress cheaper when it has to run. Most busy sites want both.
2 minute readRedis · 30 November 2026
Flush a Redis cache without scanning every key
Deleting a family of Redis keys by pattern gets slower as the cache grows, and it runs at the moment the site can least afford it. A generation counter clears the same family with one command. Here is how it works and what it costs.
5 minute readManaged Redis · 30 November 2026
Cluster-mode Redis and the read that returns nothing
A cache that works on your own Redis can quietly stop working on a managed, cluster-mode service. No error, no warning, just a miss on every request. This is the bug I shipped, and the check that would have caught it.
2 minute readCache operations · 30 November 2026
Checking a Redis cache across two PHP versions
WordPress can serve a page through one PHP version while a scheduled command warms it through another. Before changing PHP, I want to know whether each process can read what the other one wrote.
2 minute readPage cache · 30 November 2026
Cache the page, not the visitor: what is safe in a WordPress page cache
A page cache hands one person's page to everybody who asks next. If that page had anything personal or time-bound baked into it, everybody gets that too. Here are the two leaks to look for and a test that finds them.
5 minute read