Tag

developer-guides

All posts in this stream, newest first.

The Transients API: Caching Expensive Work Inside WordPress

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.

by Robbie·Jun 6, 2026·5 min read