From 0304eea58d28a230a11b389f97d25250b901be35 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 5 Jul 2021 23:11:13 +0200 Subject: Fix in locking cache check The intention obviously was to check whether $lockingCacheClass is defined, and existing class, and available. It was however checked whether the $distributedCacheClass is an existing class, which would have caused an exception already in the previous distributed cache check. Signed-off-by: MichaIng --- lib/private/Memcache/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Memcache') diff --git a/lib/private/Memcache/Factory.php b/lib/private/Memcache/Factory.php index 28a84308edc..08f19e11ef3 100644 --- a/lib/private/Memcache/Factory.php +++ b/lib/private/Memcache/Factory.php @@ -95,7 +95,7 @@ class Factory implements ICacheFactory { '{class}' => $distributedCacheClass, '{use}' => 'distributed' ]), $missingCacheHint); } - if (!($lockingCacheClass && class_exists($distributedCacheClass) && $lockingCacheClass::isAvailable())) { + if (!($lockingCacheClass && class_exists($lockingCacheClass) && $lockingCacheClass::isAvailable())) { // don't fallback since the fallback might not be suitable for storing lock $lockingCacheClass = self::NULL_CACHE; } -- cgit v1.2.3