cache intro page
This commit is contained in:
@@ -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>
|
<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| %>
|
<% cache("intro-page", :expires_in => 1.hour) do %>
|
||||||
<div class="posts">
|
<% @presenter.each do |tag, post_set| %>
|
||||||
<h2><%= link_to tag, posts_path(:tags => tag) %></h2>
|
<div class="posts">
|
||||||
<%= post_set.presenter.post_previews_html(self) %>
|
<h2><%= link_to tag, posts_path(:tags => tag) %></h2>
|
||||||
<div class="clearfix"></div>
|
<%= post_set.presenter.post_previews_html(self) %>
|
||||||
</div>
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user