Storing complex queries in transients
I’ve recently discovered the joy of transients in WordPress. You can read about them here: http://codex.wordpress.org/Transients_API. It’s a method of caching bits of information. If you have an object cache on your server like memcache, it’ll store it there, otherwise it stores it in the database. You may wonder why I’d want to store the…