From 6e02c0a1478a3900828db7ca525aa2ff029067f8 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Thu, 21 May 2020 13:22:07 +0200 Subject: [PATCH] increased data expiration time: +10 minutes --- bin/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/proxy.py b/bin/proxy.py index 722a162..8e45052 100644 --- a/bin/proxy.py +++ b/bin/proxy.py @@ -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+10) + expiry_interval = 60*(digest_number+20) timestamp = "%010d" % (int(time.time())//expiry_interval*expiry_interval) filename = os.path.join(PROXY_CACHEDIR, timestamp, path, query)