wcs: reduce some cache durations (#58462)

This commit is contained in:
Frédéric Péters 2021-12-11 17:25:24 +01:00
parent 95851f2b59
commit 91ae6e2898
1 changed files with 3 additions and 3 deletions

View File

@ -608,7 +608,7 @@ class WcsFormsOfCategoryCell(WcsCommonCategoryCell, WcsBlurpMixin):
variable_name = 'forms'
default_template_name = 'combo/wcs/forms_of_category.html'
cache_duration = 600
cache_duration = 120
def get_default_form_class(self):
from .forms import WcsFormsOfCategoryCellForm
@ -745,7 +745,7 @@ class CategoriesCell(WcsDataBaseCell):
api_url = '/api/categories/?full=on'
variable_name = 'form_categories'
default_template_name = 'combo/wcs/form_categories.html'
cache_duration = 600
cache_duration = 120
class Meta:
verbose_name = _('Form Categories')
@ -1087,7 +1087,7 @@ class BackofficeSubmissionCell(CategoriesAndWcsSiteValidityMixin, CategoriesFilt
api_url = '/api/formdefs/?backoffice-submission=on'
variable_name = 'all_formdefs'
default_template_name = 'combo/wcs/backoffice_submission.html'
cache_duration = 600
cache_duration = 120
user_dependant = True
categories = JSONField(_('Categories'), blank=True, default=dict)