Follow the steps below to enable Redis cache on your WordPress site.
- Install Redis plugin from https://wordpress.org/plugins/redis-cache/
- Enable Redis cache in your hosting control panel
- 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
Feedback sent
We appreciate your effort and will try to fix the article