Unable to select alternative caching methods from drop-down, only Disk available
-
Hello,
I am attempting to use W3 Total Cache with Redis, but all options for any caching methods other than “Disk” and “Disk: Enhanced” are grayed out and unable to be selected on any of the caching sections… I would very much like to utilize Redis for all the caching methods here.Environment:
Docker containers:- wordpress:5.4-php7.4
- mysql:5.7
- redis
I have confirmed that Redis is working and is connected through the Redis Object Cache plugin. I had to modify the wp-config.php to include the Redis configuration information. I also added in the db-config.php file within the W3 cache plugin directory with the following settings:
// // redis config cache // define( 'W3TC_CONFIG_CACHE_ENGINE', 'redis'); define( 'W3TC_CONFIG_CACHE_REDIS_SERVERS', 'site1-cache::6379' ); // optional redis settings define( 'W3TC_CONFIG_CACHE_REDIS_PERSISTENT', true ); define( 'W3TC_CONFIG_CACHE_REDIS_DBID', 0 ); define( 'W3TC_CONFIG_CACHE_REDIS_PASSWORD', '' );
wp-config.php (redis section)
/** Define Redis Caching **/ define('WP_REDIS_HOST', 'site1-cache'); //define('WP_REDIS_CLIENT', 'predis'); // appears that even though PHPredis is specified below, the plugin still utilizes predis define('WP_REDIS_CLIENT', 'phpredis'); //define('WP_CACHE', 'true'); // this is already defined at the top of the file. define('WP_CACHE_KEY_SALT', 'site1'); define('WP_REDIS_DISABLE_BANNERS', 'true'); define('WP_REDIS_DATABASE', '0'); define('WP_REDIS_TIMEOUT', '5'); // timeout in seconds define('WP_REDIS_READ_TIMEOUT', '5'); // Read timeout in seconds define('WP_REDIS_RETRY_INTERVAL', '100'); // Retry interval in milliseconds
Is there something that I’m doing wrong in order for W3 to actually recognize Redis as an option for caching?
- The topic ‘Unable to select alternative caching methods from drop-down, only Disk available’ is closed to new replies.