1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
Files
netbox-community-netbox/netbox/utilities/urls.py
2019-04-15 03:55:33 -04:00

10 lines
213 B
Python

from django.conf import settings
from django.views.decorators.cache import cache_page
def cached(view):
"""
Return a cache_page decorated view
"""
return cache_page(settings.CACHE_TIMEOUT)(view)