##// END OF EJS Templates
Removed individual post cache. Thread cache is sufficient enough
neko259 -
r897:a211f786 default
parent child Browse files
Show More
@@ -4,8 +4,6 b''
4
4
5 {% get_current_language as LANGUAGE_CODE %}
5 {% get_current_language as LANGUAGE_CODE %}
6
6
7 {% spaceless %}
8 {% cache 600 post post.id post.last_edit_time thread.archived bumpable truncated moderator LANGUAGE_CODE need_open_link %}
9 {% if thread.archived %}
7 {% if thread.archived %}
10 <div class="post archive_post" id="{{ post.id }}">
8 <div class="post archive_post" id="{{ post.id }}">
11 {% elif bumpable %}
9 {% elif bumpable %}
@@ -18,9 +16,7 b''
18 <a class="post_id" href="{% post_object_url post thread=thread %}"
16 <a class="post_id" href="{% post_object_url post thread=thread %}"
19 {% if not truncated and not thread.archived %}
17 {% if not truncated and not thread.archived %}
20 onclick="javascript:addQuickReply('{{ post.id }}'); return false;"
18 onclick="javascript:addQuickReply('{{ post.id }}'); return false;"
21 title="{% trans 'Quote' %}"
19 title="{% trans 'Quote' %}" {% endif %}>({{ post.id }})</a>
22 {% endif %}
23 >({{ post.id }}) </a>
24 <span class="title">{{ post.title }} </span>
20 <span class="title">{{ post.title }} </span>
25 <span class="pub_time">{{ post.pub_time }}</span>
21 <span class="pub_time">{{ post.pub_time }}</span>
26 {% if thread.archived %}
22 {% if thread.archived %}
@@ -77,9 +73,7 b''
77 </div>
73 </div>
78 {% endif %}
74 {% endif %}
79 </div>
75 </div>
80 {% endcache %}
81 {% if is_opening %}
76 {% if is_opening %}
82 {% cache 600 post_thread thread.id thread.last_edit_time LANGUAGE_CODE need_open_link %}
83 <div class="metadata">
77 <div class="metadata">
84 {% if is_opening and need_open_link %}
78 {% if is_opening and need_open_link %}
85 {{ thread.get_reply_count }} {% trans 'messages' %},
79 {{ thread.get_reply_count }} {% trans 'messages' %},
@@ -92,7 +86,5 b''
92 {% endfor %}
86 {% endfor %}
93 </span>
87 </span>
94 </div>
88 </div>
95 {% endcache %}
96 {% endif %}
89 {% endif %}
97 </div>
90 </div>
98 {% endspaceless %}
General Comments 0
You need to be logged in to leave comments. Login now