HOSTING TIPS ARCHIVE
Redis: hosting guides
Practical steps and checks for hosting, WordPress and performance. Browse a topic or use the dates to explore the experience behind the advice.
14 guides, newest work first.
PHP 8.6 for WordPress: compatibility checks
What I check before moving WordPress to PHP 8.6: plugin and extension compatibility, Redis formats, OPcache memory, background jobs and a tested rollback.
Give every Redis key a lifetime, even when the code asks for a week
Ace Redis Cache now caps every object cache lifetime so cold keys stop crowding shared Redis, and why values over 64 KB were never being stored.
Cache the page, not the reader: a Redis page cache on a busy news site
Nothing per-reader in cached HTML, time windows in cache keys, and a newsroom-aware most popular list that stays live inside a cached page.
Invalidate a Redis cache without scanning it
Clearing 100,000 Redis keys took 2.4 s with SCAN and DEL, 0.26 s with batched UNLINK and one command with a generation counter. Code and trade-offs.
Check-then-set is a race: atomic locks in WordPress
Get-then-set locks, dedupe and balances break under concurrency. Fix them with SET NX, wp_cache_add, GET_LOCK or a ledger, and test with parallel wp eval-file runs.
Running Varnish in front of a Redis page cache, without stale pages
Varnish and a Redis page cache can make WordPress very fast together, but only if they purge as one. The VCL and purge rules that keep both caches honest.
Stock changes need their own cache invalidation
An order can change what a shop should display without anyone pressing Update on the product. I make the cache listen to those changes too.
Cron, wp-admin and the front end need to agree where temporary data lives
A site can have a persistent object cache and still repeat the same remote calls if some request types quietly keep transients only in memory.
Background cache refresh needs a budget too
Serving an older page briefly can keep a site responsive. Rebuilding everything at once can undo the benefit.
Move large cache clears into a background queue
Clear large caches in bounded batches, keep the admin request short and show whether the job has finished.
A shared Redis service needs boundaries for clearing as well as storing
I make a site’s cache clear stay inside that site. Prefixing writes is only half of the job.
Cache product data with its pricing context
I can reuse expensive product calculations, but only when the cache key describes the price the shopper is meant to see.
PHP in the browser and PHP in cron must agree on the cache
The same cache key is not enough. Every process that reads it has to understand the value written underneath it.
A slow cache should not hold the whole site hostage
I put a time budget around Redis so that a temporary cache problem does not quietly occupy every PHP worker.
No guides match those filters. Try another topic or reset the filters.