From 50bd52600d58c063cdc9ff6d55b800a2ee45ff38 Mon Sep 17 00:00:00 2001 From: Stypox Date: Fri, 1 Aug 2025 21:06:41 +0200 Subject: [PATCH] Fix cache --- src/c3nav/mapdata/utils/cache/local.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/c3nav/mapdata/utils/cache/local.py b/src/c3nav/mapdata/utils/cache/local.py index f0fd97e6..8d9b2385 100644 --- a/src/c3nav/mapdata/utils/cache/local.py +++ b/src/c3nav/mapdata/utils/cache/local.py @@ -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: