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