修复APP删除之后,缓存未清理

pull/6/head
nineven 4 years ago
parent b02563a377
commit a263d3cf46
  1. 4
      fir_ser/api/utils/storage/caches.py

@ -162,9 +162,7 @@ def del_cache_by_delete_app(app_id):
str(now.year), str(now.month), str(now.day), app_id])
cache.delete(down_tem_key)
down_tem_key = "_".join([CACHE_KEY_TEMPLATE.get("download_times_key"), app_id])
download_times = cache.get(down_tem_key)
cache.delete(download_times)
cache.delete("_".join([CACHE_KEY_TEMPLATE.get("download_times_key"), app_id]))
cache.delete("_".join([CACHE_KEY_TEMPLATE.get("app_instance_key"), app_id]))

Loading…
Cancel
Save