Fix page caching on index when pages param is present.

fixes #145

Conflicts:

	app/controllers/refinery/blog/posts_controller.rb
This commit is contained in:
Michael Gall 2012-04-11 14:16:29 +10:00
parent 93c2726f0b
commit 87b9aacb98

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]