diff --git a/oml/cache.py b/oml/cache.py index 6d4281a..18010ab 100644 --- a/oml/cache.py +++ b/oml/cache.py @@ -2,7 +2,7 @@ import time class Cache(dict): - def __init__(self, ttl=60): + def __init__(self, ttl=10): self._ttl = ttl self._added = {} diff --git a/oml/server.py b/oml/server.py index d2ad381..9601653 100644 --- a/oml/server.py +++ b/oml/server.py @@ -103,7 +103,7 @@ def run(): pid.write('%s' % os.getpid()) state.main = IOLoop.instance() - state.cache = Cache(ttl=10) + state.cache = Cache(ttl=60) state.tasks = tasks.Tasks() def start_node():