diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-20 09:33:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-20 09:33:02 +0000 |
commit | 717f491f503d214b639f5b98e497e4189fc34902 (patch) | |
tree | 9fcf57ecc6ef31fd43c03b294906b036c03aa285 /config/application.rb | |
parent | 71172e241169933bbec364afe9268b4b36d9045f (diff) | |
download | redmine-717f491f503d214b639f5b98e497e4189fc34902.tar.gz redmine-717f491f503d214b639f5b98e497e4189fc34902.zip |
Cache search result ids for faster search pagination (#18631).
git-svn-id: http://svn.redmine.org/redmine/trunk@13770 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index b05c5287e..a2918a65c 100644 --- a/config/application.rb +++ b/config/application.rb @@ -47,6 +47,14 @@ module RedmineApp # Do not include all helpers config.action_controller.include_all_helpers = false + # Specific cache for search results, the default file store cache is not + # a good option as it could grow fast. A memory store (32MB max) is used + # as the default. If you're running multiple server processes, it's + # recommended to switch to a shared cache store (eg. mem_cache_store). + # See http://guides.rubyonrails.org/caching_with_rails.html#cache-stores + # for more options (same options as config.cache_store). + config.redmine_search_cache_store = :memory_store + config.session_store :cookie_store, :key => '_redmine_session' if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb')) |