Object caching · 1 December 2026

From 115 Redis reads to 17 on a WordPress archive

A page cache miss still leaves WordPress with work to do. I tested what happens when its object cache asks Redis for a batch of records in one go.

By Shane Rounce · 2 minute read

Picture a category page listing 50 posts. The HTML has expired, but the post data is still warm in Redis. WordPress knows which records it needs and asks the object cache for several together. In earlier ARC releases, a bulk request could still mean one Redis command per missing object in the PHP request cache.

ARC 0.14.0 collects eligible keys after checking the local cache. It asks standalone Redis, or the primary reached through Sentinel, for several values in one command. WordPress receives the records under their original keys. There is nothing extra to enable on the settings screen.

What changed for the archive

I ran 150 pairs of requests against a disposable WordPress site. Each pair used the same database, the same warm Redis instance and the same category of 50 posts. I alternated which version went first and checked the returned IDs, titles and metadata on every request.

Per archive requestBeforeARC 0.14.0
Redis read commands, median115 single reads15 single reads and two batch reads
HTTP response time, median40.5 ms39.2 ms
HTTP response time, 95th percentile61.1 ms61.9 ms

The archive needed 98 fewer Redis commands. On this local setup the median response improved by about a millisecond and the slower requests took roughly the same time. If you try this on your own site, use a route that actually runs WordPress. A full-page cache hit can skip the object cache altogether. The benchmark script includes the fixture and checks.

Why we stopped at batching

We also tried predicting which term objects a public archive would need. A ten-post category made 67 term-cache calls, but new term IDs appeared in just two batches. Reading the predictor's list and fetching its objects still cost two Redis calls. When a different test alternated between two sets of objects, prediction fetched about 12 KB per render that the page never used. Predictive object prefetch stays in the benchmark suite.

Two changes also keep the work scoped to the right data. When another plugin registers a group as non-persistent, its values stay in the current request, even on a forced read. And if a flush happens while the background clean-up is running, objects written into the fresh generation survive that sweep. See the 0.14.0 changelog.

All notes Get the latest release