{"id":113231,"date":"2014-07-25T12:47:40","date_gmt":"2014-07-25T17:47:40","guid":{"rendered":"https:\/\/2014.birmingham.wordcamp.org\/?post_type=wcb_session&#038;p=113231"},"modified":"2014-07-25T12:47:40","modified_gmt":"2014-07-25T17:47:40","slug":"temporary-cache-assistance-transients-api","status":"publish","type":"wcb_session","link":"https:\/\/birmingham.wordcamp.org\/2014\/session\/temporary-cache-assistance-transients-api\/","title":{"rendered":"Temporary Cache Assistance (Transients API)"},"content":{"rendered":"<p>WordPress has a few built-in ways to cache data that enable rapid development. Understanding your options and how to use them properly in your context is crucial to a performant and scalable site. The Transients API provides a powerful and easy way to store data with an expiration, and it comes with a few under-the-hood perks as well.<\/p>\n<p>Join me in looking at the benefits you can gain from understanding and implementing &#8220;transients&#8221;. When we&#8217;re done, you&#8217;ll know what this API is, when it should be used, how to use it, and how to scale it. I&#8217;ll give real, useful code examples that you can implement immediately\u2014without boring you to death. You&#8217;ll be able to do anything from caching data from a external API (like recent tweets) to storing a large, complex query.<\/p>\n<p>We&#8217;ll also cover some of the more obscure aspects of this method, like: -Object caching\/Memcached -Autoloading -Race Conditions -Expired transient cleanup -Options table bloat<\/p>\n<p>Do yourself and your visitors a favor by utilizing the Transients API. And, as you&#8217;ll see in this session, knowing how to use it will make all WordPress&#8217;s caching techniques easy to implement.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress has a few built-in ways to cache data that enable rapid development. Understanding your options and how to use them properly in your context is crucial to a performant and scalable site. The Transients API provides a powerful and easy way to store data with an expiration, and it comes with a few under-the-hood &hellip; <a href=\"https:\/\/birmingham.wordcamp.org\/2014\/session\/temporary-cache-assistance-transients-api\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Temporary Cache Assistance (Transients API)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6609059,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1408197600,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[113179],"footnotes":""},"session_track":[5041],"session_category":[],"class_list":["post-113231","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-developer"],"jetpack_sharing_enabled":true,"session_date_time":{"date":"August 16, 2014","time":"9:00 am"},"session_speakers":[{"id":"113179","slug":"cliff-seal","name":"Cliff Seal","link":"https:\/\/birmingham.wordcamp.org\/2014\/speaker\/cliff-seal\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/birmingham.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions\/113231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/birmingham.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/birmingham.wordcamp.org\/2014\/wp-json\/wp\/v2\/types\/wcb_session"}],"author":[{"embeddable":true,"href":"https:\/\/birmingham.wordcamp.org\/2014\/wp-json\/wp\/v2\/users\/6609059"}],"version-history":[{"count":2,"href":"https:\/\/birmingham.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions\/113231\/revisions"}],"predecessor-version":[{"id":113324,"href":"https:\/\/birmingham.wordcamp.org\/2014\/wp-json\/wp\/v2\/sessions\/113231\/revisions\/113324"}],"speakers":[{"embeddable":true,"href":"https:\/\/birmingham.wordcamp.org\/2014\/wp-json\/wp\/v2\/speakers\/113179"}],"wp:attachment":[{"href":"https:\/\/birmingham.wordcamp.org\/2014\/wp-json\/wp\/v2\/media?parent=113231"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/birmingham.wordcamp.org\/2014\/wp-json\/wp\/v2\/session_track?post=113231"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/birmingham.wordcamp.org\/2014\/wp-json\/wp\/v2\/session_category?post=113231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}