##// END OF EJS Templates
Optimized post reflinks caching
neko259 -
r570:4b322d4d 1.7-dev
parent child Browse files
Show More
@@ -4,7 +4,7 b''
4
4
5 {% get_current_language as LANGUAGE_CODE %}
5 {% get_current_language as LANGUAGE_CODE %}
6
6
7 {% cache 600 post post.id post.thread_new.last_edit_time truncated moderator LANGUAGE_CODE need_open_link %}
7 {% cache 600 post post.id thread.last_edit_time truncated moderator LANGUAGE_CODE need_open_link %}
8 {% spaceless %}
8 {% spaceless %}
9 {% with thread=post.thread_new %}
9 {% with thread=post.thread_new %}
10 {% if thread.archived %}
10 {% if thread.archived %}
@@ -38,7 +38,7 b''
38 {% if thread.archived %}
38 {% if thread.archived %}
39 — [{{ thread.bump_time }}]
39 — [{{ thread.bump_time }}]
40 {% endif %}
40 {% endif %}
41 {% if not truncated and not thread.archived%}
41 {% if not truncated and not thread.archived %}
42 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
42 [<a href="#" onclick="javascript:addQuickReply('{{ post.id }}')
43 ; return false;">&gt;&gt;</a>]
43 ; return false;">&gt;&gt;</a>]
44 {% endif %}
44 {% endif %}
@@ -69,6 +69,7 b''
69 {{ post.text.rendered }}
69 {{ post.text.rendered }}
70 {% endif %}
70 {% endif %}
71 {% endautoescape %}
71 {% endautoescape %}
72 {% cache 600 post_replies post.id post.last_edit_time moderator LANGUAGE_CODE %}
72 {% if post.is_referenced %}
73 {% if post.is_referenced %}
73 <div class="refmap">
74 <div class="refmap">
74 {% trans "Replies" %}:
75 {% trans "Replies" %}:
@@ -78,6 +79,7 b''
78 {% endfor %}
79 {% endfor %}
79 </div>
80 </div>
80 {% endif %}
81 {% endif %}
82 {% endcache %}
81 </div>
83 </div>
82 {% if post.is_opening and thread.tags.exists %}
84 {% if post.is_opening and thread.tags.exists %}
83 <div class="metadata">
85 <div class="metadata">
General Comments 0
You need to be logged in to leave comments. Login now