Cache time to 120s
This commit is contained in:
parent
c0e5255bee
commit
e2ea6b8970
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue