rebuild LevelRenderData after saving changed_geometries
@@ -58,13 +58,13 @@ class MapUpdate(models.Model):
from c3nav.mapdata.models import AltitudeArea
AltitudeArea.recalculate()
- from c3nav.mapdata.render.base import LevelRenderData
- LevelRenderData.rebuild()
-
super().save(**kwargs)
from c3nav.mapdata.cache import changed_geometries
changed_geometries.save(old_cache_key, self.cache_key)
+ from c3nav.mapdata.render.base import LevelRenderData
+ LevelRenderData.rebuild()
+
cache.set('mapdata:last_update', (self.pk, self.datetime), 900)
delete_old_cached_tiles.apply_async(countdown=5)
