AMélioration cache
This commit is contained in:
parent
753ef3e29d
commit
5a54e34ed6
@ -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 @@
|
||||
|
||||
|
||||
<div class="vertical-max">
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
{% cache 500 place_lists user.is_authenticated %}
|
||||
|
||||
{% if object_list %}
|
||||
{% for place in object_list %}
|
||||
<h3><a href="{% url 'view_place' place.pk %}">{{ place.name }}</a> — <a id="open-map-{{ place.id }}" href="#map_location" data-tooltip="afficher sur la carte">{% picto_from_name "map" %}</a></h3>
|
||||
@ -47,6 +52,7 @@
|
||||
{% else %}
|
||||
<p>Il n'y a aucun lieu défini.</p>
|
||||
{% endif %}
|
||||
{% endcache %}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
Loading…
Reference in New Issue
Block a user