equal
deleted
inserted
replaced
70 |
70 |
71 Automatically included by :func:`cubicweb.pyramid.make_cubicweb_application`. |
71 Automatically included by :func:`cubicweb.pyramid.make_cubicweb_application`. |
72 """ |
72 """ |
73 repo = config.registry['cubicweb.repository'] |
73 repo = config.registry['cubicweb.repository'] |
74 interval = int(config.registry.settings.get( |
74 interval = int(config.registry.settings.get( |
75 'cubicweb.usercache.expiration_time', 60*5)) |
75 'cubicweb.usercache.expiration_time', 60 * 5)) |
76 repo.looping_task(interval, clear_cache) |
76 repo.looping_task(interval, clear_cache) |