Amélioration cache

This commit is contained in:
Jean-Marie Favreau 2024-08-29 23:42:09 +02:00
parent 714d7c3835
commit 753ef3e29d

View File

@ -6,6 +6,8 @@
{% load utils_extra %}
{% load cat_extra %}
{% load static %}
{% load cache %}
{% load i18n %}
{% block entete_header %}
@ -61,6 +63,9 @@
<p>Voir aussi <a href="{% url 'view_places' %}">les autres lieux</a></p>
</div>
</div>
{% get_current_language as LANGUAGE_CODE %}
{% cache 500 place_list user.is_authenticated object %}
{% if object_list %}
<h2>Événements du lieu</h2>
@ -75,6 +80,7 @@
{% include "agenda_culturel/navigation.html" with page_obj=page_obj %}
{% endif %}
{% endcache %}
<footer>
<!--p>Voir tous les événements de ce lieu</p-->
{% if user.is_authenticated %}