WordPress Transients API

Very simple API, along the same lines as local storage, only in this case WordPress-database-side rather than client-side. It caches your query as a variable in the database you can call on.

If you have WordPress site that is making a lot of database calls [for random or related posts for example] you need to take a look over this and see if you can cache some. 

Just trying to put the word out, somehow this passed me by and from the comments I read on various articles about it, many other people as well also. 

WordPress Transients API

Advertisements