Ajout de cache pour la page d'un jour
This commit is contained in:
parent
08e66918ab
commit
526b83ec20
@ -3,6 +3,7 @@
|
||||
{% load cat_extra %}
|
||||
{% load utils_extra %}
|
||||
{% load event_extra %}
|
||||
{% load cache %}
|
||||
|
||||
|
||||
{% block title %}{% block og_title %}{{ event.title }}{% endblock %}{% endblock %}
|
||||
@ -16,6 +17,9 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% with cache_timeout=user.is_authenticated|yesno:"30,600" %}
|
||||
{% cache cache_timeout event user.is_authenticated event %}
|
||||
|
||||
<div class="grid two-columns">
|
||||
<div>
|
||||
{% include "agenda_culturel/single-event/event-single-inc.html" with event=event filter=filter %}
|
||||
@ -130,5 +134,7 @@
|
||||
|
||||
|
||||
</div>
|
||||
{% endcache %}
|
||||
{% endwith %}
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user