rename cache_key→current_cache_key
This commit is contained in:
parent
2124b4a536
commit
82fc9f2264
6 changed files with 10 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue