View Slides

We’ll cover the basics of the Transients API, see basic examples, and then discuss common places where this method can be most helpful, like large, complex queries or pulling from an external API. We’ll also discuss how this type of caching is unique, when to use it, and how to scale it for big bursts of traffic.

Follow Along

I’ve got all the working code samples in a plugin that you can look through while we talk. View it in GitHub, or download the repo and apply it to a local WordPress installation to see the code at work. To do that:

  1. Clone the repo to your plugins directory or download the .zip file.
  2. Activate the plugin.
  3. Import the contained .xml file, which will import five posts with shortcodes that execute the functions.

If you use MAMP and want to spin up an installation quickly, I’ve got a shell script for you to do just that.

Thanks for the warm welcome, WordCamp Phoenix! Apparently, this part of the country has absolutely no trouble showing up at 8am—the room was packed.

Since I had to shorten things up from when I last presented this, we had to skip the ever-enjoyable “Whose Line Is It, Anyway?” video I usually show first.

The slides themselves have links to my sources and are helpful in getting the gist of what we talked about. Here are some of my favorite tweets that took place during the session: