还是缓存问题

This commit is contained in:
guange 2015-06-01 13:58:37 +08:00
parent adb21cc617
commit e786873061
1 changed files with 1 additions and 3 deletions

View File

@ -123,7 +123,6 @@
</div>
<div class="welcome-box-list-new memo_activity">
<% topics = find_new_forum_topics(12) %>
<% cache topics.maximum(:created_at) do%>
<% topics.includes(:forum, :last_reply, :author).each do |topic|%>
<li class="message-brief-intro" style="line-height:1.4em;">
<div class='memo_title text_nowrap'>
@ -153,10 +152,9 @@
</div>
</li>
<% end %>
<% end %>
</div>
</ul>
</div>
<div class="clearfix"></div>
<%= render partial: 'link_to_another' %>
<%= render partial: 'link_to_another' %>