From 4041d2a2b61b76513b871da8ef9a946aec91f456 Mon Sep 17 00:00:00 2001 From: brafkind Date: Mon, 14 Sep 2015 22:53:05 -0400 Subject: [PATCH] Update handlers.py Increase caching window from 10 min to 60 min (1 hour) --- backend/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/handlers.py b/backend/handlers.py index df3f306..857b03f 100644 --- a/backend/handlers.py +++ b/backend/handlers.py @@ -757,7 +757,7 @@ def get(self): now = calendar.timegm(time.gmtime()) then = memcache.get(StatesHandler.TIME_KEY) old = memcache.get(StatesHandler.VALUE_KEY) - if old and ((now - then) < (10 * 60)): + if old and ((now - then) < (60 * 60)): self.response.write(old) else: logging.info('Recomputing states totals.')