On cache plus de choses (filtres)

This commit is contained in:
Jean-Marie Favreau 2025-01-31 15:49:20 +01:00
parent 3a25706284
commit dcc470315e
2 changed files with 3 additions and 6 deletions

View File

@ -27,12 +27,11 @@
{% block content %}
{% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=0 %}
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
{% cache cache_timeout month user.is_authenticated calendar.firstdate category filter.get_url %}
{% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=0 %}
<article>
<header>
<div class="title small"><h1>{% if category %}{{ category.name }} en {% endif %}{{ calendar.firstdate | date:"F o" }}{% if filter.has_location %} à {{ filter.get_position }}{% endif %}</h1></div>

View File

@ -40,11 +40,9 @@
{% endblock %}{% endblock %}</h1></header>
{% endcache %}
{% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=1 %}
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
{% cache cache_timeout upcoming user.is_authenticated calendar.firstdate filter.get_url category calendar.nb_days %}
{% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=1 %}
<footer>
{% if category %}