Fix cache

This commit is contained in:
Fabio Giovanazzi 2025-08-01 21:06:41 +02:00
parent 29e9a341e2
commit 50bd52600d
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23

View file

@ -32,6 +32,9 @@ class LocalCacheProxy:
# not in our cache
result = cache.get(key, default=NoneFromCache)
if result is not NoneFromCache:
print("result", result, result is NoneFromCache)
if self._items.get(None) is None:
self._items.set(OrderedDict())
self._items.get()[key] = result
self._prune()
else: