cubicweb/pyramid/tools.py
branch3.24
changeset 11811 f09efeead7f9
parent 11701 ca536eec556b
child 11824 d7ecf6dab085
equal deleted inserted replaced
11810:2e03bb4372b2 11811:f09efeead7f9
    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)