修复自动清理临时文件 由于缓存时间不足,导致任务失效

super_signature
nineven 5 years ago
parent 1dac608843
commit fb99233ce5
  1. 2
      fir_ser/api/utils/crontab/sync_cache.py

@ -38,7 +38,7 @@ def auto_clean_upload_tmp_file():
data = cache.get(upload_tem_file_key)
if data:
stime = data.get("stime", None)
if stime and time.time() - stime > 60 * 60:
if stime and time.time() - stime > 60 * 20:
user_obj = UserInfo.objects.filter(pk=data.get("id")).first()
if user_obj:
storage = Storage(user_obj)

Loading…
Cancel
Save