Object Caching with Redis
Now that we have a Redis service up and running in our Kubernetes cluster, let’s configure WordPress to use it for its object cache. This will store things like posts, pages, users, options and other core objects, as well as provide the API to quickly store and retrieve arbitrary data persistently across requests.
If you’re not familiar with object caching in WordPress, it’s worth reviewing our earlier section, which covers object caching and persistence.
Note: all code samples from this section are available on GitHub.
Picking a Redis Plugin
There are quite a few Redis plugins for WordPress from various different vendors, free and paid, feature-rich and simple. You’re welcome to pick any one that you like, though we do recommend going for simplicity.
This article is for premium members only. Memberships start from $95/year and unlock access to all existing and future content on kubeadm.org, including all reference architectures.
Already a member? Login here
Getting Started
Running WordPress
Scaling WordPress
Scaling the Database
Caching