##// END OF EJS Templates
Caching all tags list for some time
neko259 -
r630:504f435b default
parent child Browse files
Show More
@@ -1,6 +1,7 b''
1 {% extends "boards/base.html" %}
1 {% extends "boards/base.html" %}
2
2
3 {% load i18n %}
3 {% load i18n %}
4 {% load cache %}
4
5
5 {% block head %}
6 {% block head %}
6 <title>Neboard - {% trans "Tags" %}</title>
7 <title>Neboard - {% trans "Tags" %}</title>
@@ -8,6 +9,7 b''
8
9
9 {% block content %}
10 {% block content %}
10
11
12 {% cache 600 all_tags_list %}
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 %}
@@ -27,5 +29,6 b''
27 {% trans 'No tags found.' %}
29 {% trans 'No tags found.' %}
28 {% endif %}
30 {% endif %}
29 </div>
31 </div>
32 {% endcache %}
30
33
31 {% endblock %}
34 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now