Skip to content

Commit ba6db5c

Browse files
committed
update relationship for debug
1 parent c939db3 commit ba6db5c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Config/Factory/Cache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,11 @@ private function getUnsyncedConfigStructure(string $cacheBackendModel, array $ba
332332
*/
333333
private function getSynchronizedConfigStructure(string $cacheBackendModel, array $backendConfig): array
334334
{
335-
$backendClass = isset($backendConfig['host']) && strpos($backendConfig['host'], 'valkey') !== false
335+
$backendClass = $backendConfig['host'] === 'valkey'
336336
? '\Magento\Framework\Cache\Backend\Valkey'
337337
: '\Magento\Framework\Cache\Backend\Redis';
338338

339-
$config = [
339+
$config = [
340340
'backend' => $cacheBackendModel,
341341
'backend_options' => [
342342
'remote_backend' => $backendClass,

src/Config/Validator/Deploy/SessionCredentials.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ public function validate(): Validator\ResultInterface
7171
}
7272
}
7373

74-
if (isset($sessionConfig['save']) && strpos($sessionConfig['save'], 'valkey') !== false) {
75-
if (!isset($sessionConfig['valkeycache'])) {
74+
if ($sessionConfig['save'] === 'valkey') {
75+
if (!isset($sessionConfig['valkey'])) {
7676
return $this->resultFactory->create(Validator\ResultInterface::ERROR, [
7777
'error' => 'Missed valkey options in session configuration'
7878
]);
7979
}
8080

81-
if (!isset($sessionConfig['valkeycache']['host'])) {
81+
if (!isset($sessionConfig['valkey']['host'])) {
8282
return $this->resultFactory->create(Validator\ResultInterface::ERROR, [
8383
'error' => 'Missed host option for valkey in session configuration'
8484
]);

0 commit comments

Comments
 (0)