Skip to content

Commit a6334aa

Browse files
committed
valkey debug for 2.4.7
1 parent a8061b7 commit a6334aa

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/Config/Factory/Cache.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,4 +379,13 @@ private function isSynchronizedConfigStructure(): bool
379379
return $redisModel === self::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE ||
380380
$valkeyModel === self::VALKEY_BACKEND_REMOTE_SYNCHRONIZED_CACHE;
381381
}
382+
383+
/**
384+
* @return array
385+
*/
386+
public function isValkeyEnabled()
387+
{
388+
return $this->valkey->getConfiguration();
389+
}
390+
382391
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ private function checkBackendModel(string $backend): void
187187
$notAllowedValkeyBackend = [
188188
CacheFactory::VALKEY_BACKEND_VALKEY_CACHE
189189
];
190-
190+
$isValkeyEnabled= $this->cacheConfig->isValkeyEnabled();
191+
print_r($isValkeyEnabled);
191192
try {
192193
if (in_array($backend, $notAllowedValkeyBackend, true)
193194
&& !$this->magentoVersion->isGreaterOrEqual('2.4.8')) {

0 commit comments

Comments
 (0)