From 884d8d6001bd0889d8eec6a250c65735f349ad6f Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 4 Jan 2012 20:20:09 -0200 Subject: [PATCH] Fix search controller calls to is_cache_expired? --- app/controllers/public/search_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/public/search_controller.rb b/app/controllers/public/search_controller.rb index 094ae07..1be89b6 100644 --- a/app/controllers/public/search_controller.rb +++ b/app/controllers/public/search_controller.rb @@ -207,7 +207,7 @@ class SearchController < PublicController def tags @tags_cache_key = "tags_env_#{environment.id.to_s}" - if is_cache_expired?(@tags_cache_key, true) + if is_cache_expired?(@tags_cache_key) @tags = environment.tag_counts end end @@ -215,7 +215,7 @@ class SearchController < PublicController def tag @tag = params[:tag] @tag_cache_key = "tag_#{CGI.escape(@tag.to_s)}_env_#{environment.id.to_s}_page_#{params[:npage]}" - if is_cache_expired?(@tag_cache_key, true) + if is_cache_expired?(@tag_cache_key) @tagged = environment.articles.find_tagged_with(@tag).paginate(:per_page => 10, :page => params[:npage]) end end -- libgit2 0.21.2