Setup Redis Object Caching

Follow the steps below to enable Redis cache on your WordPress site.

  1. Install Redis plugin from https://wordpress.org/plugins/redis-cache/
  2. Enable Redis cache in your hosting control panel
  3. Add values below with settings from Redis Cache area to your wp-config.php file
// Redis host IP, port and password
define( 'WP_REDIS_HOST', 'ENTER_IP_HERE' );
define( 'WP_REDIS_PORT', ENTER_PORT_HERE );
define( 'WP_REDIS_PASSWORD', 'ENTER_PASSWORD_HERE' );

// Change the prefix and database for each site to avoid cache data collisions
define( 'WP_REDIS_PREFIX', 'USE_UNIQUE_TERM' );
define( 'WP_REDIS_DATABASE', 0 ); // 0-15

// Reasonable connection and read+write timeouts
define( 'WP_REDIS_TIMEOUT', 1 );
define( 'WP_REDIS_READ_TIMEOUT', 1 );


Recommend Redis Limits




Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article