1. wp-content/object-cache.php around line 630
protected function build_parameters() {
$parameters = [
‘scheme’ => ‘tcp’,
‘host’ => ‘redis’,
‘port’ => 6379,
‘database’ => 0,
‘timeout’ => 1,
‘read_timeout’ => 1,
‘retry_interval’ => null,
‘persistent’ => false,
‘password’ => ‘redis_password’
2. wp-config.php bottom
require_once ABSPATH . ‘wp-settings.php’;
define(‘WP_REDIS_HOST’, ‘redis’);
define(‘WP_REDIS_PORT’, ‘6379’);
define(‘WP_REDIS_DATABASE’, ‘0’);
define(‘WP_REDIS_PASSWORD’, ‘redis_password’);
define(‘WP_REDIS_PERSISTENT’, true);
define(‘WP_REDIS_RETRY_INTERVAL’, 100);
Simon Guetta




