wp_cache_* for Developers: Writing Code That Flies with Redis
Learn how to use WordPress's object cache API correctly so your plugin or theme code speeds up automatically the moment a persistent cache like Redis appears.
All posts in this stream, newest first.
Learn how to use WordPress's object cache API correctly so your plugin or theme code speeds up automatically the moment a persistent cache like Redis appears.
The WordPress object cache disappears on every page load unless you back it with Redis. Here is what it actually stores, why database-heavy sites suffer without it, and how to wire it up correctly.
Every WordPress request passes through several independent caches before it ever touches your database. Learn what each layer does, how they interact, and the order to enable them for compounding performance wins.
Transients let you store the result of a slow API call or heavy query so WordPress does not repeat that work on every page load. Here is how to use them correctly, including how they behave once a persistent object cache is in the picture.
A practical blueprint for gating content, handling recurring payments, and keeping a membership site fast, without breaking caching for logged-in members.
Every WordPress request has to pass through a PHP worker, and there are only so many to go around. Here is what that limit actually means, how it fails, and how caching lets you serve far more traffic without adding a single worker.
When admin-ajax.php shows up at the top of your slow query log, here's how to find the plugin responsible, move its work somewhere lighter, and cache around what's left.
Not every 'speed plugin' does the same job, and running two that overlap can slow you down more than running none. Here's what each category actually does, and how to build a stack that doesn't fight itself.