# HG changeset patch # User neko259 # Date 2014-01-22 12:51:30 # Node ID 4b322d4d8de5ba7d0ddc9a39f43e5efbd623abb6 # Parent 7967dc124d760f1d9a6621569de51e09549e28de Optimized post reflinks caching 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,7 +4,7 @@ {% get_current_language as LANGUAGE_CODE %} -{% cache 600 post post.id post.thread_new.last_edit_time truncated moderator LANGUAGE_CODE need_open_link %} +{% cache 600 post post.id thread.last_edit_time truncated moderator LANGUAGE_CODE need_open_link %} {% spaceless %} {% with thread=post.thread_new %} {% if thread.archived %} @@ -38,7 +38,7 @@ {% if thread.archived %} — [{{ thread.bump_time }}] {% endif %} - {% if not truncated and not thread.archived%} + {% if not truncated and not thread.archived %} [>>] {% endif %} @@ -69,6 +69,7 @@ {{ post.text.rendered }} {% endif %} {% endautoescape %} + {% cache 600 post_replies post.id post.last_edit_time moderator LANGUAGE_CODE %} {% if post.is_referenced %}
{% trans "Replies" %}: @@ -78,6 +79,7 @@ {% endfor %}
{% endif %} + {% endcache %} {% if post.is_opening and thread.tags.exists %}