mirror of
https://github.com/nextcloud/server.git
synced 2026-02-26 03:11:28 -05:00
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 <micha@dietpi.com>
This commit is contained in:
parent
c67e1420c8
commit
e5fe200076
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue