Fix caching

This commit is contained in:
2020-10-15 17:32:18 +01:00
parent 3d7ff435c9
commit bb4d31477e
9 changed files with 21 additions and 22 deletions

View File

@@ -20,12 +20,11 @@ from RIGS import models, forms
from assets import models as asset_models
from functools import reduce
from django.views.decorators.cache import never_cache
from django.views.decorators.cache import never_cache, cache_page
from django.utils.decorators import method_decorator
# Displays the current rig count along with a few other bits and pieces
@method_decorator(never_cache, name='dispatch') # Disable browser based caching
class Index(generic.TemplateView):
template_name = 'index.html'