Redis Object Cache plugin in WordPress

How to set up the Redis Object Cache plugin in WordPress on your Simply.com host

Redis Object Cache plugin uses Redis for caching, which can provide better performance, especially on larger and heavy websites with a lot of cached data accessed on every page load. Since Redis is not available for all customers and requires individual configuration, it must be set up manually.

Step‑by‑step guide to setting up Redis Cache in WordPress

1. Find your Redis details

You can find your Redis details in Our Control Panel in the left‑hand menu under Redis. This is also where you can create a Redis instance if you haven’t done so already.

2. Edit wp-config.php

To configure Redis Cache, add the following lines to the top of your wp-config.php file:

define('WP_REDIS_HOST', '<hostnavn>');
define('WP_REDIS_PORT', <port>);
define('WP_REDIS_DATABASE', 0);
define('WP_REDIS_PASSWORD', '<password>');

Replace <port>, <hostnavn> and <password> with the relevant details for your Redis instance.

3. Install and activate the Redis Cache plugin

  1. Log in to the WordPress admin panel.
  2. Go to PluginsAdd New.
  3. Search for Redis Object Cache.
  4. Click Install Now and then Activate.
  5. After installing the plugin, go to SettingsRedis and click Activate.

4. Confirm that Redis Cache is working

After installing and activating Redis you can check whether Redis Cache is working correctly by navigating to SettingsRedis in the WordPress admin panel. It should indicate that it is connected.

Article from the support category: PHP

Other relevant articles