From e2ea6b897002f2e6bff1b4bb351f299b76ab99fd Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sun, 9 Jul 2017 17:18:30 +0200 Subject: [PATCH] Cache time to 120s --- app/controllers/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api.py b/app/controllers/api.py index 5040865..5e66390 100644 --- a/app/controllers/api.py +++ b/app/controllers/api.py @@ -19,7 +19,7 @@ def get_cached(key): global cache global cache_time value = cache.get(key,None) - if (time.time() - cache_time) > 10: + if (time.time() - cache_time) > 120: cache = {} cache_time = time.time() return value