Cache 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.

By Shane Rounce · 2 minute read

For Ace Redis Cache 0.13.0 I set up a disposable two-site WordPress network. Its web requests and command-line jobs shared one private Redis instance. I paired PHP 8.5.12 with 8.6.0, using phpredis 6.3.0 and igbinary 3.2.16 in both. The test installation ran WordPress 7.1.5 and WooCommerce 11.3.1.

Start with a page the other runtime has never seen

I warmed the homepage from WP-CLI and sent the next signed-out request through the other PHP-FPM pool. Its response contained X-AceRedisCache: HIT (advcache). That header showed the early drop-in had found the page before WordPress loaded. I swapped the runtimes and repeated the test. Both directions returned the early hit.

I also tested the second site's homepage. A multisite installation shares infrastructure, but a cached transient on the first blog still needs to return the first blog’s value. I wrote different values to the same transient name on each site and checked them from the other PHP process.

Check a session and an actual miss

A cached boolean false is a valid result. WordPress exposes a separate found flag so that callers can distinguish it from a missing key. The fixture checked both cases, then created a WooCommerce basket session from one runtime and read its contents from the other. I also checked that a WordPress login token could be read and revoked across runtimes.

What to look for during your own upgrade

Check which PHP executable your scheduled WP-CLI command actually uses. Compare its phpredis version, serialiser and compression extensions with those of the web pool. On a test copy, warm a public page, request it signed out and inspect the cache headers. Repeat after swapping which process writes the entry.

In ARC 0.13.0, open Tools → Site Health → Info → Ace Redis Cache to inspect Redis hits, misses, memory, keys and the ARC circuit breaker. Redis reports server-wide counters. When several sites share that server, the response header on the page you requested tells you more about that individual request than a movement in the server total.

See the hosting requirements for Redis setup and warming guide for the command options.

All notes Get the latest release