- commit
- d655212f9838e82d549880bc8e25c12f40aeea03
- parent
- ecf87538083b71f5a37dff0258697ccbbbaaf996
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-03-08 14:13
fix cache fixup 08a7ea0
Diffstat
M | dropin.py | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/dropin.py b/dropin.py
@@ -178,7 +178,7 @@ def async_cache(func): 178 178 cache = {} 179 179 async def wrapper(*args, duration=CACHE_DURATION, **kwargs): 180 180 nonlocal cache181 -1 cache = {k: v for k, v in cache.items() if v[0] < time.time()}-1 181 cache = {k: v for k, v in cache.items() if v[0] > time.time()} 182 182 183 183 key = functools._make_key(args, kwargs, typed=False) 184 184 if key in cache: