##// END OF EJS Templates
Don't cache tags list in template, template caches are considered a bad...
neko259 -
r1162:c448702a default
parent child Browse files
Show More
@@ -1,7 +1,6
1 {% extends "boards/base.html" %}
1 {% extends "boards/base.html" %}
2
2
3 {% load i18n %}
3 {% load i18n %}
4 {% load cache %}
5
4
6 {% block head %}
5 {% block head %}
7 <title>Neboard - {% trans "Tags" %}</title>
6 <title>Neboard - {% trans "Tags" %}</title>
@@ -9,7 +8,6
9
8
10 {% block content %}
9 {% block content %}
11
10
12 {% cache 600 all_tags_list query %}
13 <div class="post">
11 <div class="post">
14 {% if all_tags %}
12 {% if all_tags %}
15 {% for tag in all_tags %}
13 {% for tag in all_tags %}
@@ -26,6 +24,5
26 <div><a href="{% url 'tags' %}">{% trans 'All tags' %}</a></div>
24 <div><a href="{% url 'tags' %}">{% trans 'All tags' %}</a></div>
27 {% endif %}
25 {% endif %}
28 </div>
26 </div>
29 {% endcache %}
30
27
31 {% endblock %}
28 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now