WordPress – Enable Redis Object Cache

In the recent 6.1 WordPress update, the “Site Health Status” check has added an “Object Cache” recommendation. So then, should you install memcached? No, use Redis instead 🙂

Here’s how:

First, install Redis Object Cache WordPress plugin as you normally would

Second, install Redis on your webserver.

Third, go to Settings > Redis and enable object cache.

Fourth, If you have Redis hosted somewhere else (other than localhost). Update your wp-config.php with the following:

define( 'WP_REDIS_HOST', 'REDIS_ENPOINT' );
define( 'WP_REDIS_PORT', 6379 );
define( 'WP_REDIS_TIMEOUT', 1 );
define( 'WP_REDIS_READ_TIMEOUT', 1 );

Keep on caching 👾

Leave a Reply

Your email address will not be published. Required fields are marked *