From 5a54e34ed63fed0224fe41db5cb2c423648bd476 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Thu, 29 Aug 2024 23:43:24 +0200 Subject: [PATCH] =?UTF-8?q?AM=C3=A9lioration=20cache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/agenda_culturel/place_list.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/agenda_culturel/templates/agenda_culturel/place_list.html b/src/agenda_culturel/templates/agenda_culturel/place_list.html index c28d1f1..bcbdea7 100644 --- a/src/agenda_culturel/templates/agenda_culturel/place_list.html +++ b/src/agenda_culturel/templates/agenda_culturel/place_list.html @@ -2,6 +2,8 @@ {% block title %}{% block og_title %}Lieux{% endblock %}{% endblock %} +{% load cache %} +{% load i18n %} {% load utils_extra %} {% load static %} {% load cat_extra %} @@ -31,6 +33,9 @@
+ {% get_current_language as LANGUAGE_CODE %} + {% cache 500 place_lists user.is_authenticated %} + {% if object_list %} {% for place in object_list %}

{{ place.name }}{% picto_from_name "map" %}

@@ -47,6 +52,7 @@ {% else %}

Il n'y a aucun lieu défini.

{% endif %} + {% endcache %}