On cache plus de choses (filtres)
This commit is contained in:
parent
3a25706284
commit
dcc470315e
@ -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>
|
||||
|
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user