equal
deleted
inserted
replaced
62 |
62 |
63 |
63 |
64 def includeme(config): |
64 def includeme(config): |
65 """Start the cache maintenance loop task. |
65 """Start the cache maintenance loop task. |
66 |
66 |
67 Automatically included by :func:`cubicweb.pyramid.make_cubicweb_application`. |
67 Automatically included by :mod:`cubicweb.pyramid`. |
68 """ |
68 """ |
69 repo = config.registry['cubicweb.repository'] |
69 repo = config.registry['cubicweb.repository'] |
70 interval = int(config.registry.settings.get( |
70 interval = int(config.registry.settings.get( |
71 'cubicweb.usercache.expiration_time', 60 * 5)) |
71 'cubicweb.usercache.expiration_time', 60 * 5)) |
72 repo.looping_task(interval, clear_cache) |
72 repo.looping_task(interval, clear_cache) |