From 0be26694127524f2a2c0c03e0557ec743b83bdfc Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Tue, 25 Oct 2022 19:21:11 +0200 Subject: [PATCH] Increase expiration interval --- bin/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/proxy.py b/bin/proxy.py index 0f7a645..499fde7 100755 --- a/bin/proxy.py +++ b/bin/proxy.py @@ -93,7 +93,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+90) + expiry_interval = 60*(digest_number+180) timestamp = "%010d" % (int(time.time())//expiry_interval*expiry_interval) filename = os.path.join(PROXY_CACHEDIR, timestamp, path, query)