In this article, you will learn about a special type of web storage system known as a persistent object cache. It’s a way to store frequently requested parts of your site as “objects” that can be quickly recalled from system memory to save on resource usage. Read on to learn more and how to find out if your site can benefit from this kind of storage system.
- What is a persistent object cache?
- How to check if a persistent object cache is required for your site
What Is A Persistent Object Cache?
Not all sites may require, or even benefit from, a persistent object cache.
A persistent object cache can provide significant performance improvements for large sites with lots of visitors. It works by storing frequently requested resources (objects) in system memory. This way, your site does not need to invoke PHP and MySQL every time a request is made or part of a page (like the comment section) is updated.
Redis and Memcached are two of the most popular persistent object cache tools, and both of them can be configured to work well for WordPress.
How To Check If A Persistent Object Cache Is Required
The performance lab plugin for WordPress runs a check on your site to see if it would benefit from a persistent object cache.
With this module enabled, you will be able to access your site health status and see whether or not your site needs to update its caching to something with more power.
Follow the steps below to check your server support:
- Log in to the WordPress dashboard
- Click the link for the site health screen
- Wait a moment for the modules and checks to finish loading
- Scroll down to passed tests and unfold the contained dropdown list
You should see the health check marked with a performance tag:
If your site does not require persistent object caching, but you still want to perform some kind of caching to improve performance, then you may want to simply install a plugin like W3 Total Cache. This plugin can store static versions of dynamic pages, minify code, and provide other advanced features that may help speed up your site.