From 636f66edee6370a037124b5e809d4a7877b5e3e6 Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Fri, 7 Mar 2025 10:00:16 +0100 Subject: [PATCH] widen cache refresh range --- nomenklatura/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomenklatura/cache.py b/nomenklatura/cache.py index 59666b12..e5b5a7c8 100644 --- a/nomenklatura/cache.py +++ b/nomenklatura/cache.py @@ -31,7 +31,7 @@ class CacheValue: def randomize_cache(days: int) -> timedelta: - min_cache = max(1, math.ceil(days * 0.7)) + min_cache = max(1, math.ceil(days * 0.5)) max_cache = math.ceil(days * 1.3) return timedelta(days=randint(min_cache, max_cache))