Merge pull request #222 from wakeless/fix-page-caching-2-0

Fix page caching on index when pages param is present.
This commit is contained in:
Philip Arndt 2012-04-10 21:20:04 -07:00
commit 01fa464c33

View file

@ -2,7 +2,7 @@ module Refinery
module Blog
class PostsController < BlogController
caches_page :index
caches_page :index, :unless => proc {|c| c.refinery_user_signed_in? || c.flash.any? || params[:page].present? }
before_filter :find_all_blog_posts, :except => [:archive]
before_filter :find_blog_post, :only => [:show, :comment, :update_nav]