diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-06 10:40:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-02-06 10:40:21 +0000 |
commit | 2ad8242ae782ea9d87a0d98f8563199da736bdc7 (patch) | |
tree | e7e309e5b1a879d2579d74e95ee7282e9fc6771f /config/environment.rb | |
parent | 6c8b87fbc8a52b53a0adb53f072508ade7e2dca6 (diff) | |
download | redmine-2ad8242ae782ea9d87a0d98f8563199da736bdc7.tar.gz redmine-2ad8242ae782ea9d87a0d98f8563199da736bdc7.zip |
Adds a setting to cache textile rendering (off by default).
* it uses ActionController cache store which is MemoryStore by default and can be configured with config.action_controller.cache_store
* macro processing was moved out of textile rendering so that it doesn't get cached
* no noticeable improvement is expected for small portions of text, so only texts larger than 2KB are cached
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3372 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/environment.rb b/config/environment.rb index 97fc54adb..f89695f46 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -32,7 +32,7 @@ Rails::Initializer.run do |config| # Enable page/fragment caching by setting a file-based store # (remember to create the caching directory and make it readable to the application) - # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache" + # config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" # Activate observers that should always be running # config.active_record.observers = :cacher, :garbage_collector |