diff options
author | Michael Gall <michael@wakeless.net> | 2012-04-11 13:13:58 +1000 |
---|---|---|
committer | Michael Gall <michael@wakeless.net> | 2012-04-11 13:13:58 +1000 |
commit | 9a150112aee7d59aff76bc91e995be69c93cb3ff (patch) | |
tree | 8224948dc7249d8fad3efd1f91bc3fffd5abcc51 /app/controllers/refinery | |
parent | 981fc6ef684f1166a53bd60c087e60516e1009b0 (diff) | |
download | refinerycms-blog-9a150112aee7d59aff76bc91e995be69c93cb3ff.tar.gz refinerycms-blog-9a150112aee7d59aff76bc91e995be69c93cb3ff.tar.bz2 refinerycms-blog-9a150112aee7d59aff76bc91e995be69c93cb3ff.zip |
Fix page caching on index when pages param is present.
fixes #145
Diffstat (limited to 'app/controllers/refinery')
-rw-r--r-- | app/controllers/refinery/blog/posts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/refinery/blog/posts_controller.rb b/app/controllers/refinery/blog/posts_controller.rb index 5218493..b453d72 100644 --- a/app/controllers/refinery/blog/posts_controller.rb +++ b/app/controllers/refinery/blog/posts_controller.rb @@ -2,7 +2,7 @@ module Refinery module Blog class PostsController < BlogController - caches_page :index, :unless => proc {|c| c.refinery_user_signed_in? || c.flash.any? } + 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] |