fix typo or it will never load from local cache

This commit is contained in:
Laura Klünder 2023-12-07 18:57:40 +01:00
parent dff4b7ea46
commit 0150851808
4 changed files with 4 additions and 4 deletions

View file

@ -217,7 +217,7 @@ class LevelGeometryIndexed(GeometryIndexed):
def open_level_cached(cls, level_id, mode):
from c3nav.mapdata.models import MapUpdate
cache_key = MapUpdate.current_processed_cache_key()
if getattr(cls.cached, 'cache_key', None) != cache_key:
if getattr(cls.cached, 'key', None) != cache_key:
cls.cached.key = cache_key
cls.cached.data = {}
else: