diff --git a/lib/private/Memcache/KeyValueCache.php b/lib/private/Memcache/KeyValueCache.php index 9125290d801f4..fd47bbc95c5e4 100644 --- a/lib/private/Memcache/KeyValueCache.php +++ b/lib/private/Memcache/KeyValueCache.php @@ -232,7 +232,7 @@ protected function evalLua(string $scriptName, array $keys, array $args) { * so fall back to the default and cap it to the maximum. */ private function normalizeTtl(int $ttl): int { - if ($ttl <= 0) { + if ($ttl === 0) { // we need to allow negative TTL for file locking $ttl = self::DEFAULT_TTL; } return min($ttl, self::MAX_TTL);