cache intro page

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

View File

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