process updates asynchronously

This commit is contained in:
Laura Klünder 2017-11-10 16:32:58 +01:00
parent 5d34790876
commit ea22c7a927
4 changed files with 102 additions and 13 deletions

View file

@ -292,7 +292,7 @@ class LevelRenderData:
@classmethod
def get(cls, level):
with cls.cache_lock:
cache_key = MapUpdate.current_cache_key()
cache_key = MapUpdate.current_processed_cache_key()
level_pk = str(level.pk if isinstance(level, Level) else level)
if cls.cache_key != cache_key:
cls.cache_key = cache_key