From 2ad8242ae782ea9d87a0d98f8563199da736bdc7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 6 Feb 2010 10:40:21 +0000 Subject: 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 --- config/environment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/environment.rb') 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 -- cgit v1.2.3