# HG changeset patch # User neko259 # Date 2014-01-23 11:36:45 # Node ID 63c411a6b548b55b16f96b1f2f4fd0ebe730d552 # Parent 7081c21dbd909a33087128717dfb318f7e9de2cd Optimized post caching a little diff --git a/boards/templates/boards/post.html b/boards/templates/boards/post.html --- a/boards/templates/boards/post.html +++ b/boards/templates/boards/post.html @@ -4,14 +4,14 @@ {% get_current_language as LANGUAGE_CODE %} -{% with thread=post.thread_new %} -{% cache 600 post post.id thread.last_edit_time truncated moderator LANGUAGE_CODE need_open_link %} +{% with thread=post.thread_new bumpable=thread.can_bump %} +{% cache 600 post post.id post.last_edit_time thread.archived bumpable truncated moderator LANGUAGE_CODE need_open_link %} {% with is_opening=post.is_opening %} {% spaceless %} {% if thread.archived %}
- {% elif thread.can_bump %} + {% elif bumpable %}
{% else %}
@@ -34,10 +34,8 @@
{% if is_opening and thread.tags.exists %}