How to Configure The Redis Plugin for WordPress

1. Install and activate the Redis plugin for WordPress at https://wordpress.org/plugins/redis-cache/

2. Open wp-config.php and add these variables:

define("WP_REDIS_HOST", 'IP_FROM_REDIS_INFO');
define("WP_REDIS_PORT", 'PORT_FROM_REDIS_INFO');
define("WP_REDIS_PASSWORD", 'AUTH_KEY_FROM_REDIS_INFO');
define("WP_CACHE_KEY_SALT", 'example.com');
define("WP_REDIS_SELECTIVE_FLUSH", true); Replace example.com with your unique domain. WP_REDIS_SELECTIVE_FLUSH is set so flushing the cache from WordPress flushes only the cache for a select key. All the other information you can obtain from your cPanel account -> UNIXy Redis -> Instance Info
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to configure the Redis Plugin with Litespeed Cache and Wordpress

LiteSpeed Cache (the WordPress plugin) has its own cache bindings and overwrites all caching...