cubicweb/pyramid/tools.py
changeset 11958 950ce7d9f642
parent 11827 851b6bd79b50
child 11967 83739be20fab
equal deleted inserted replaced
11957:48b8fbc88209 11958:950ce7d9f642
    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)