From 5e89287537c8356097c658694b0222886895cbf1 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 8 Aug 2012 23:05:32 -0400 Subject: [PATCH] durr, don't cache new items on the homepage --- app/views/outfits/new.html.haml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/views/outfits/new.html.haml b/app/views/outfits/new.html.haml index d4427cd9..be6a99e1 100644 --- a/app/views/outfits/new.html.haml +++ b/app/views/outfits/new.html.haml @@ -86,18 +86,19 @@ %span#latest-contribution-created-at{:title => @latest_contribution.created_at.to_s} #{time_ago_in_words @latest_contribution.created_at} ago -- cache :action_suffix => 'whats_new' do - #whats-new + +#whats-new + - cache :action_suffix => 'blog_preview' do #blog-preview %h2 %div %a#blog-preview-linkback{:href => 'http://blog.openneo.net/'} OpenNeo Blog - - #newest-items - %h2 New Items - %ul - - @newest_items.each do |item| - = link_to image_tag(item.thumbnail_url), item + + #newest-items + %h2 New Items + %ul + - @newest_items.each do |item| + = link_to image_tag(item.thumbnail_url), item - content_for :javascripts do = include_javascript_libraries :jquery