diff --git a/templates/drupal7.settings.php.tmpl b/templates/drupal7.settings.php.tmpl index 46d5174..b4814b0 100644 --- a/templates/drupal7.settings.php.tmpl +++ b/templates/drupal7.settings.php.tmpl @@ -152,7 +152,7 @@ if (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'install') { $redis_module_path = "$contrib_path_site/redis"; } - if (!empty($wodby['redis']['host']) && $redis_module_path) { + if (!empty($wodby['redis']['host']) && $redis_module_path && (empty($wodby['2']) || !empty($wodby['enable_redis']))) { $conf['redis_client_host'] = $wodby['redis']['host']; $conf['redis_client_port'] = $wodby['redis']['port']; if(isset($wodby['redis']['password'])) { diff --git a/templates/drupal8.settings.php.tmpl b/templates/drupal8.settings.php.tmpl index 382e029..76bc239 100644 --- a/templates/drupal8.settings.php.tmpl +++ b/templates/drupal8.settings.php.tmpl @@ -164,7 +164,7 @@ if (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'install') { $redis_module_path = "$contrib_path_site/redis"; } - if (!empty($wodby['redis']['host']) && $redis_module_path) { + if (!empty($wodby['redis']['host']) && $redis_module_path && (empty($wodby['2']) || !empty($wodby['enable_redis']))) { $settings['redis.connection']['host'] = $wodby['redis']['host']; $settings['redis.connection']['port'] = $wodby['redis']['port']; if(isset($wodby['redis']['password'])) { diff --git a/templates/drupal9.settings.php.tmpl b/templates/drupal9.settings.php.tmpl index 7a2db8a..f8af52b 100644 --- a/templates/drupal9.settings.php.tmpl +++ b/templates/drupal9.settings.php.tmpl @@ -155,7 +155,7 @@ if (!defined('MAINTENANCE_MODE') || MAINTENANCE_MODE != 'install') { $redis_module_path = "$contrib_path_site/redis"; } - if (!empty($wodby['redis']['host']) && $redis_module_path) { + if (!empty($wodby['redis']['host']) && $redis_module_path && (empty($wodby['2']) || !empty($wodby['enable_redis']))) { $settings['redis.connection']['host'] = $wodby['redis']['host']; $settings['redis.connection']['port'] = $wodby['redis']['port']; if(isset($wodby['redis']['password'])) {