From ade40e80ba5bc74fd1ebffe7b3dad6aa32f872d1 Mon Sep 17 00:00:00 2001
From: root
- Enter zero to disable caching. Make sure to configure fragment_cache_store if you use the value > 0. + Enter zero to disable caching. Make sure to configure cache_store if you use the value > 0.
- Configuration example for ActiveSupport::Cache::FileStore, config/environments/production.rb file:
+ Configuration example for ActiveSupport::Cache::FileStore, config/environments/production.rb file:
...
- config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache"
+ config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/cache"
...
+ Note: use 'fragment_cache_store' instead of 'cache_store' for Redmine 0.8.x. +
Current cache settings are:
ActionController::Base.cache_configured? = <%= h ActionController::Base.cache_configured? ? "true" : "false" %>
- ActionController::Base.fragment_cache_store = <%= h ActionController::Base.fragment_cache_store.inspect %>
+ <% cache_store = ActionController::Base.respond_to?('fragment_cache_store=') ? ActionController::Base.fragment_cache_store : ActionController::Base.cache_store %>
+ ActionController::Base.cache_store = <%= h cache_store.inspect %>