On rajoute un peu de cache
This commit is contained in:
parent
c789a7c4c7
commit
bf30d1ebc1
@ -19,7 +19,9 @@
|
||||
{% endblock %}{% endblock %}
|
||||
|
||||
{% block navigation-menu %}
|
||||
{% cache 90000 navigation_links_month user.is_authenticated calendar.firstdate category filter.get_url %}
|
||||
{% navigation_links filter category %}
|
||||
{% endcache %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@ -164,6 +166,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
{% cache 90000 footer_month user.is_authenticated calendar.firstdate category filter.get_url %}
|
||||
<footer>
|
||||
{% if category %}
|
||||
{% if calendar.today_in_calendar %}
|
||||
@ -179,6 +182,7 @@
|
||||
<a role="button" data-tooltip="Copiez ce lien et importez-le dans votre agenda" href="{% url 'export_ical' %}?{{ filter.get_url }}">Export ical {% picto_from_name "calendar" %}</a>
|
||||
{% endif %}
|
||||
</footer>
|
||||
{% endcache %}
|
||||
</article>
|
||||
{% endcache %}
|
||||
{% endwith %}
|
||||
|
@ -14,7 +14,9 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block navigation-menu %}
|
||||
{% cache 90000 navigation_links_upcoming user.is_authenticated calendar.firstdate filter.get_url category calendar.calendar_days_list|length %}
|
||||
{% navigation_links filter category %}
|
||||
{% endcache %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
@ -18,7 +18,9 @@
|
||||
|
||||
|
||||
{% block navigation-menu %}
|
||||
{% cache 90000 navigation_links_week user.is_authenticated calendar.firstdate category filter.get_url %}
|
||||
{% navigation_links filter category %}
|
||||
{% endcache %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
@ -198,6 +200,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
{% cache 90000 footer_week user.is_authenticated calendar.firstdate category filter.get_url %}
|
||||
<footer>
|
||||
|
||||
{% if calendar.today_in_calendar %}
|
||||
@ -225,6 +228,7 @@
|
||||
<a role="button" data-tooltip="Copiez ce lien et importez-le dans votre agenda" href="{% url 'export_ical' %}?{{ filter.get_url }}">Export ical {% picto_from_name "calendar" %}</a>
|
||||
{% endif %}
|
||||
</footer>
|
||||
{% endcache %}
|
||||
</article>
|
||||
{% endcache %}
|
||||
{% endwith %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user