##// END OF EJS Templates
Caching all threads on the page, on every one of them separately.
neko259 -
r191:844d6cfb default
parent child Browse files
Show More
@@ -29,8 +29,8 b''
29 {% endif %}
29 {% endif %}
30
30
31 {% if threads %}
31 {% if threads %}
32 {% cache 600 thread_cache threads.0.thread.last_edit_time moderator %}
32 {% for thread in threads %}
33 {% for thread in threads %}
33 {% cache 600 thread_cache thread.thread.last_edit_time moderator %}
34 <div class="thread">
34 <div class="thread">
35 {% if thread.bumpable %}
35 {% if thread.bumpable %}
36 <div class="post" id="{{ thread.thread.id }}">
36 <div class="post" id="{{ thread.thread.id }}">
@@ -120,9 +120,9 b''
120 {% endfor %}
120 {% endfor %}
121 </div>
121 </div>
122 {% endif %}
122 {% endif %}
123 {% endcache %}
124 </div>
123 </div>
125 {% endfor %}
124 {% endfor %}
125 {% endcache %}
126 {% else %}
126 {% else %}
127 <div class="post">
127 <div class="post">
128 {% trans 'No threads exist. Create the first one!' %}</div>
128 {% trans 'No threads exist. Create the first one!' %}</div>
General Comments 0
You need to be logged in to leave comments. Login now