Skip to content

Commit 7325048

Browse files
Update lib/private/Memcache/KeyValueCache.php
Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 9c712be commit 7325048

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Memcache/KeyValueCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ protected function evalLua(string $scriptName, array $keys, array $args) {
256256
* so fall back to the default and cap it to the maximum.
257257
*/
258258
private function normalizeTtl(int $ttl): int {
259-
if ($ttl === 0) {
259+
if ($ttl <= 0) {
260260
$ttl = self::DEFAULT_TTL;
261261
}
262262
return min($ttl, self::MAX_TTL);

0 commit comments

Comments
 (0)