rename cache_key→current_cache_key

This commit is contained in:
Laura Klünder 2017-10-23 22:49:45 +02:00
parent 2124b4a536
commit 82fc9f2264
6 changed files with 10 additions and 6 deletions

View file

@ -8,7 +8,7 @@ from c3nav.celery import app
@app.task()
def delete_old_cached_tiles(*args, **kwargs):
from c3nav.mapdata.models import MapUpdate
cache_key = MapUpdate.cache_key()
cache_key = MapUpdate.current_cache_key()
for folder in os.listdir(settings.TILES_ROOT):
if folder == cache_key: