##// 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,31 +1,28
1 1 {% extends "boards/base.html" %}
2 2
3 3 {% load i18n %}
4 {% load cache %}
5 4
6 5 {% block head %}
7 6 <title>Neboard - {% trans "Tags" %}</title>
8 7 {% endblock %}
9 8
10 9 {% block content %}
11 10
12 {% cache 600 all_tags_list query %}
13 11 <div class="post">
14 12 {% if all_tags %}
15 13 {% for tag in all_tags %}
16 14 <div class="tag_item">
17 15 {% autoescape off %}
18 16 {{ tag.get_view }}
19 17 {% endautoescape %}
20 18 </div>
21 19 {% endfor %}
22 20 {% else %}
23 21 {% trans 'No tags found.' %}
24 22 {% endif %}
25 23 {% if query %}
26 24 <div><a href="{% url 'tags' %}">{% trans 'All tags' %}</a></div>
27 25 {% endif %}
28 26 </div>
29 {% endcache %}
30 27
31 28 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now