Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/private/Memcache/KeyValueCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading