

@register.decorator_tag
def cached(timeout, fragment_name, *extra):
    return cacheops.cached(timeout=timeout, extra=((fragment_name,) + extra))

dataset/ETHPy150Open Suor/django-cacheops/cacheops/templatetags/cacheops.py cached/original