Commit 884d8d6001bd0889d8eec6a250c65735f349ad6f

Authored by Antonio Terceiro
1 parent c72475dd

Fix search controller calls to is_cache_expired?

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/controllers/public/search_controller.rb
... ... @@ -207,7 +207,7 @@ class SearchController < PublicController
207 207  
208 208 def tags
209 209 @tags_cache_key = "tags_env_#{environment.id.to_s}"
210   - if is_cache_expired?(@tags_cache_key, true)
  210 + if is_cache_expired?(@tags_cache_key)
211 211 @tags = environment.tag_counts
212 212 end
213 213 end
... ... @@ -215,7 +215,7 @@ class SearchController < PublicController
215 215 def tag
216 216 @tag = params[:tag]
217 217 @tag_cache_key = "tag_#{CGI.escape(@tag.to_s)}_env_#{environment.id.to_s}_page_#{params[:npage]}"
218   - if is_cache_expired?(@tag_cache_key, true)
  218 + if is_cache_expired?(@tag_cache_key)
219 219 @tagged = environment.articles.find_tagged_with(@tag).paginate(:per_page => 10, :page => params[:npage])
220 220 end
221 221 end
... ...