Skip to content

Commit

Permalink
Explicitly enable redis cache for W2
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Jul 9, 2024
1 parent 14b07d2 commit 5fe4160
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/drupal7.settings.php.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down
2 changes: 1 addition & 1 deletion templates/drupal8.settings.php.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down
2 changes: 1 addition & 1 deletion templates/drupal9.settings.php.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down

0 comments on commit 5fe4160

Please sign in to comment.