cache intro page

This commit is contained in:
r888888888
2013-07-05 19:40:05 -07:00
parent 7d0bc1be29
commit 89695f1e18

View File

@@ -12,12 +12,14 @@
<p style="text-align: center;">Type in your favorite anime, manga, or character (last name first). Here are some examples:</p>
<% @presenter.each do |tag, post_set| %>
<div class="posts">
<h2><%= link_to tag, posts_path(:tags => tag) %></h2>
<%= post_set.presenter.post_previews_html(self) %>
<div class="clearfix"></div>
</div>
<% cache("intro-page", :expires_in => 1.hour) do %>
<% @presenter.each do |tag, post_set| %>
<div class="posts">
<h2><%= link_to tag, posts_path(:tags => tag) %></h2>
<%= post_set.presenter.post_previews_html(self) %>
<div class="clearfix"></div>
</div>
<% end %>
<% end %>
</div>
</div>