Enabling Redis Object Caching

    For Your Managed WordPress or Managed WooCommerce Sites

    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.

    Was this article helpful?

    Send feedback

    Can’t find what you’re looking for?

    Our award-winning customer care team is here for you.

    Contact Support