Home » Topics » Technical and configuration issues » Actions and filters » Add Transient Cache for Performance
Hi, where can we add code for transient cache ?
What is it?
Transients are types of cached data enabled in WordPress by the Transients API.
Something like this code :
set_transient( $transient, $value, $expiration );
get_transient ( $transient );
But to do what?
to cache queries in some table, for faster response.
We do not use transients: there would be too many queries to cache, and a typical query takes a few milliseconds to execute.
Most of the time is spent on the theme during the loop on post results.
You must be logged in to reply to this topic.