mirror of
https://github.com/chubin/wttr.in
synced 2024-11-14 16:17:19 +00:00
Increase cache expiration time interval
This commit is contained in:
parent
94cdb961f9
commit
a963c131d1
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,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+40)
|
||||
expiry_interval = 60*(digest_number+90)
|
||||
|
||||
timestamp = "%010d" % (int(time.time())//expiry_interval*expiry_interval)
|
||||
filename = os.path.join(PROXY_CACHEDIR, timestamp, path, query)
|
||||
|
|
Loading…
Reference in a new issue