proxy: increased expiration time

pull/461/head
Igor Chubin 5 years ago
parent a09e61594a
commit ff9d0353ed

@ -84,7 +84,7 @@ def _cache_file(path, query):
digest = hashlib.sha1(("%s %s" % (path, query)).encode("utf-8")).hexdigest()
digest_number = ord(digest[0].upper())
expiry_interval = 60*(digest_number+20)
expiry_interval = 60*(digest_number+30)
timestamp = "%010d" % (int(time.time())//expiry_interval*expiry_interval)
filename = os.path.join(PROXY_CACHEDIR, timestamp, path, query)

Loading…
Cancel
Save