increase cache to 60
This commit is contained in:
parent
c54dd8b853
commit
86b6f47c9f
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ import time
|
||||||
|
|
||||||
class Cache(dict):
|
class Cache(dict):
|
||||||
|
|
||||||
def __init__(self, ttl=60):
|
def __init__(self, ttl=10):
|
||||||
self._ttl = ttl
|
self._ttl = ttl
|
||||||
self._added = {}
|
self._added = {}
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,7 @@ def run():
|
||||||
pid.write('%s' % os.getpid())
|
pid.write('%s' % os.getpid())
|
||||||
|
|
||||||
state.main = IOLoop.instance()
|
state.main = IOLoop.instance()
|
||||||
state.cache = Cache(ttl=10)
|
state.cache = Cache(ttl=60)
|
||||||
state.tasks = tasks.Tasks()
|
state.tasks = tasks.Tasks()
|
||||||
|
|
||||||
def start_node():
|
def start_node():
|
||||||
|
|
Loading…
Reference in a new issue