Avant d'avoir résolu le problème de performance, on passe le cache à 6000 secondes pour les visiteurs anonymes
This commit is contained in:
parent
6e2f99407a
commit
02014a243b
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
{% with cache_timeout=user.is_authenticated|yesno:"30,6000" %}
|
||||||
{% cache cache_timeout month user.is_authenticated calendar.firstdate category filter.get_url %}
|
{% cache cache_timeout month user.is_authenticated calendar.firstdate category filter.get_url %}
|
||||||
|
|
||||||
{% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=0 %}
|
{% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=0 %}
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
{% endblock %}{% endblock %}</h1></header>
|
{% endblock %}{% endblock %}</h1></header>
|
||||||
{% endcache %}
|
{% endcache %}
|
||||||
|
|
||||||
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
{% with cache_timeout=user.is_authenticated|yesno:"30,6000" %}
|
||||||
{% cache cache_timeout upcoming user.is_authenticated calendar.firstdate filter.get_url category calendar.nb_days %}
|
{% 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 %}
|
{% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=1 %}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|
||||||
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
{% with cache_timeout=user.is_authenticated|yesno:"30,6000" %}
|
||||||
{% cache cache_timeout week user.is_authenticated calendar.firstdate category filter.get_url %}
|
{% cache cache_timeout week user.is_authenticated calendar.firstdate category filter.get_url %}
|
||||||
{% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=0 category=category %}
|
{% include "agenda_culturel/filter-inc.html" with filter=filter noarticle=0 category=category %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user