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:
commit
01fa464c33
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue