Skip to content

Commit 8d8a293

Browse files
committed
changes to fix session issue
1 parent ba6db5c commit 8d8a293

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/Config/Factory/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Cache
4545
];
4646

4747
public const AVAILABLE_VALKEY_BACKEND = [
48-
self::VALKEY_BACKEND_CM_CACHE,
48+
self::REDIS_BACKEND_CM_CACHE,
4949
self::VALKEY_BACKEND_VALKEY_CACHE,
5050
self::VALKEY_BACKEND_REMOTE_SYNCHRONIZED_CACHE
5151
];

src/Step/Deploy/InstallUpdate/ConfigUpdate/Session/Config.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public function __construct(
120120
public function get(): array
121121
{
122122
$envSessionConfiguration = (array)$this->stageConfig->get(DeployInterface::VAR_SESSION_CONFIGURATION);
123+
$cacheBackend = 'redis';
123124

124125
if (!$this->configMerger->isEmpty($envSessionConfiguration)
125126
&& !$this->configMerger->isMergeRequired($envSessionConfiguration)
@@ -132,29 +133,25 @@ public function get(): array
132133
ValkeySession::NAME_VALKEY_SESSION . ' will be used for session if it was not override by '
133134
. DeployInterface::VAR_SESSION_CONFIGURATION
134135
);
135-
$cacheBackend = 'valkey';
136-
$cacheConfig = $valkeyConfig;
136+
$cacheConfig = $valkeyConfig;
137137
} elseif ($valkeyConfig = $this->valkey->getConfiguration()) {
138138
$this->logger->info(
139139
VALKEY::NAME_VALKEY . ' will be used for session if it was not override by '
140140
. DeployInterface::VAR_SESSION_CONFIGURATION
141141
);
142-
$cacheBackend = 'valkey';
143-
$cacheConfig = $valkeyConfig;
142+
$cacheConfig = $valkeyConfig;
144143
} elseif ($redisConfig = $this->redisSession->getConfiguration()) {
145144
$this->logger->info(
146145
RedisSession::NAME_REDIS_SESSION . ' will be used for session if it was not override by '
147146
.DeployInterface::VAR_SESSION_CONFIGURATION
148147
);
149-
$cacheBackend = 'redis';
150-
$cacheConfig = $redisConfig;
148+
$cacheConfig = $redisConfig;
151149
} elseif ($redisConfig = $this->redis->getConfiguration()) {
152150
$this->logger->info(
153151
Redis::NAME_REDIS . ' will be used for session if it was not override by '
154152
. DeployInterface::VAR_SESSION_CONFIGURATION
155153
);
156-
$cacheBackend = 'redis';
157-
$cacheConfig = $redisConfig;
154+
$cacheConfig = $redisConfig;
158155
} else {
159156
return [];
160157
}

0 commit comments

Comments
 (0)