# HG changeset patch # User neko259 # Date 2015-05-11 22:03:40 # Node ID c448702a29681acf08225eec8f336653979edb12 # Parent 7469cb64c6064cfd87c9d179140af9d07a7439fd Don't cache tags list in template, template caches are considered a bad practice in this project diff --git a/boards/templates/boards/tags.html b/boards/templates/boards/tags.html --- a/boards/templates/boards/tags.html +++ b/boards/templates/boards/tags.html @@ -1,7 +1,6 @@ {% extends "boards/base.html" %} {% load i18n %} -{% load cache %} {% block head %} Neboard - {% trans "Tags" %} @@ -9,23 +8,21 @@ {% block content %} -{% cache 600 all_tags_list query %} -
- {% if all_tags %} - {% for tag in all_tags %} -
- {% autoescape off %} - {{ tag.get_view }} - {% endautoescape %} -
- {% endfor %} - {% else %} - {% trans 'No tags found.' %} - {% endif %} - {% if query %} -
{% trans 'All tags' %}
- {% endif %} -
-{% endcache %} +
+ {% if all_tags %} + {% for tag in all_tags %} +
+ {% autoescape off %} + {{ tag.get_view }} + {% endautoescape %} +
+ {% endfor %} + {% else %} + {% trans 'No tags found.' %} + {% endif %} + {% if query %} +
{% trans 'All tags' %}
+ {% endif %} +
{% endblock %}