Skip to content

Commit 1909210

Browse files
committed
changes to fix session issue
1 parent bd0c083 commit 1909210

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Config/Factory/Cache.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function get(): array
158158
);
159159
$finalConfig = [
160160
'frontend' => [
161-
'default' => $backendConfig,
161+
'default' => $cacheCache,
162162
],
163163
'type' => [
164164
'default' => ['frontend' => 'default'],
@@ -308,8 +308,9 @@ private function isConfigurationCompatibleWithSlaveConnection(
308308
*/
309309
private function getUnsyncedConfigStructure(string $cacheBackendModel, array $backendConfig): array
310310
{
311-
$config = [
312-
'backend' => $cacheBackendModel,
311+
$cacheBackendModelRedis='Cm_Cache_Backend_Redis';
312+
$config = [
313+
'backend' => $cacheBackendModelRedis,
313314
'backend_options' => [
314315
'server' => $backendConfig['host'],
315316
'port' => $backendConfig['port'],

src/Step/Deploy/PreDeploy/ConfigUpdate/Cache.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public function execute()
9393

9494
if (isset($cacheConfig['frontend'])) {
9595
$cacheConfig['frontend'] = array_filter($cacheConfig['frontend'], function ($cacheFrontend) {
96-
print_r($cacheFrontend);
9796
$backend = $cacheFrontend['backend'];
9897
$customCacheBackend = $cacheFrontend['_custom_valkey_backend']
9998
?? $cacheFrontend['_custom_redis_backend']

0 commit comments

Comments
 (0)