We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.

Your Digital Commerce Experts
Nexcess Logo

Enabling Redis Object Caching

February 14, 2020

Object caching can improve database query performance both on the front-end of your site as well as in wp-admin.

Redis object caching is enabled by default on all new sites. We automatically install the Redis Object Cache plugin to do this.

Note: If Redis object caching is not present on your site you can enable it by making sure the Redis Object Cache plugin is installed and active. The plugin can be installed from wp-admin or using a WP-CLI command.

wp plugin install redis-cache --activate

Also, check that the object-cache.php drop-in file exists in your site's wp-content folder. 

The WP-CLI command to run to add the object-cache.php drop in is;

wp redis enable

The WP-CLI command to check on the redis status is;

wp redis status

You can check that redis is working on your site from;

Settings > Redis

Flushing the object cache will clear out the Redis object cache for your site this is the same as say clearing the page cache, but in this case, it would be just for the object cache. To be able to flush the object cache you will need to run this WP-CLI command from terminal or Putty on your site server;

wp cache flush

It is also possible to flush the object cache from the admin bar on your site. Click on the flush object cache section under the Nexcess logo in the admin bar. This will clear the object cache from your site's server.

You can also flush the object cache from Settings > Redis in wp-admin on the site.

If you need any help with Redis object caching on your Managed WordPress or Managed WooCommerce sites please contact support.

Considering a CDN?

CDN means Content Delivery Network. Click the following link for an Overview of CDNs.

Patrick Rauland