File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/Step/Deploy/PreDeploy/ConfigUpdate Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -171,9 +171,12 @@ private function checkBackendModel(string $backend): void
171
171
CacheFactory::REDIS_BACKEND_REDIS_CACHE ,
172
172
CacheFactory::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE
173
173
];
174
- $ notAllowedValkeyBackend = [
175
- CacheFactory::VALKEY_BACKEND_VALKEY_CACHE
174
+ $ AllowedRedisBackendCheck = [
175
+ CacheFactory::REDIS_BACKEND_CM_CACHE ,
176
+ CacheFactory::REDIS_BACKEND_REDIS_CACHE ,
177
+ CacheFactory::REDIS_BACKEND_REMOTE_SYNCHRONIZED_CACHE
176
178
];
179
+
177
180
$ isValkeyEnabled = $ this ->cacheConfig ->isValkeyEnabled ();
178
181
try {
179
182
if (!$ this ->magentoVersion ->isGreaterOrEqual ('2.4.5 ' ) && ($ isValkeyEnabled ['scheme ' ] ?? '' ) === 'valkey ' ) {
@@ -185,7 +188,7 @@ private function checkBackendModel(string $backend): void
185
188
)
186
189
);
187
190
}
188
- if (in_array ($ backend , $ notAllowedRedisBackend , true )
191
+ if (in_array ($ backend , $ AllowedRedisBackendCheck , true )
189
192
&& $ this ->magentoVersion ->isGreaterOrEqual ('2.4.8 ' )
190
193
) {
191
194
$ this ->logger ->warning (
You can’t perform that action at this time.
0 commit comments