On rajoute un peu de cache
This commit is contained in:
parent
c789a7c4c7
commit
bf30d1ebc1
@ -19,7 +19,9 @@
|
|||||||
{% endblock %}{% endblock %}
|
{% endblock %}{% endblock %}
|
||||||
|
|
||||||
{% block navigation-menu %}
|
{% block navigation-menu %}
|
||||||
|
{% cache 90000 navigation_links_month user.is_authenticated calendar.firstdate category filter.get_url %}
|
||||||
{% navigation_links filter category %}
|
{% navigation_links filter category %}
|
||||||
|
{% endcache %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
@ -164,6 +166,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{% cache 90000 footer_month user.is_authenticated calendar.firstdate category filter.get_url %}
|
||||||
<footer>
|
<footer>
|
||||||
{% if category %}
|
{% if category %}
|
||||||
{% if calendar.today_in_calendar %}
|
{% 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>
|
<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 %}
|
{% endif %}
|
||||||
</footer>
|
</footer>
|
||||||
|
{% endcache %}
|
||||||
</article>
|
</article>
|
||||||
{% endcache %}
|
{% endcache %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
@ -14,7 +14,9 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block navigation-menu %}
|
{% 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 %}
|
{% navigation_links filter category %}
|
||||||
|
{% endcache %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,9 @@
|
|||||||
|
|
||||||
|
|
||||||
{% block navigation-menu %}
|
{% block navigation-menu %}
|
||||||
|
{% cache 90000 navigation_links_week user.is_authenticated calendar.firstdate category filter.get_url %}
|
||||||
{% navigation_links filter category %}
|
{% navigation_links filter category %}
|
||||||
|
{% endcache %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
@ -198,6 +200,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% cache 90000 footer_week user.is_authenticated calendar.firstdate category filter.get_url %}
|
||||||
<footer>
|
<footer>
|
||||||
|
|
||||||
{% if calendar.today_in_calendar %}
|
{% 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>
|
<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 %}
|
{% endif %}
|
||||||
</footer>
|
</footer>
|
||||||
|
{% endcache %}
|
||||||
</article>
|
</article>
|
||||||
{% endcache %}
|
{% endcache %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user