mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
10 lines
213 B
Python
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)
|