summaryrefslogtreecommitdiffstats
path: root/app/controllers/search_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/search_controller.rb')
-rw-r--r--app/controllers/search_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index ac52f42b6..3f80b18b0 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -18,8 +18,6 @@
class SearchController < ApplicationController
before_filter :find_optional_project
- @@search_cache_store ||= ActiveSupport::Cache.lookup_store :memory_store
-
def index
@question = params[:q] || ""
@question.strip!
@@ -57,7 +55,7 @@ class SearchController < ApplicationController
fetcher = Redmine::Search::Fetcher.new(
@question, User.current, @scope, projects_to_search,
- :all_words => @all_words, :titles_only => @titles_only
+ :all_words => @all_words, :titles_only => @titles_only, :cache => params[:page].present?
)
if fetcher.tokens.present?