File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Step/Deploy/PreDeploy/ConfigUpdate Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -181,10 +181,9 @@ private function checkBackendModel(string $backend): void
181181 CacheFactory::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE
182182 ];
183183 $ notAllowedValkeyBackend = [
184- CacheFactory::VALKEY_BACKEND_VALKEY_CACHE ,
185- CacheFactory::VALKEY_BACKEND_REMOTE_SYNCHRONIZED_CACHE
184+ CacheFactory::VALKEY_BACKEND_VALKEY_CACHE
186185 ];
187-
186+ // $isValkeyEnabled= $this->cacheConfig->isValkeyEnabled(); // @TODO
188187 try {
189188 if (in_array ($ backend , $ notAllowedValkeyBackend , true )
190189 && !$ this ->magentoVersion ->isGreaterOrEqual ('2.4.8 ' )) {
You can’t perform that action at this time.
0 commit comments