From d8f2fea813ef46022cf828eb90b2af9c656854e0 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 16 Dec 2007 23:10:48 +0000 Subject: Turned on ActionView::Base.cache_template_loading by default in config/environments/production.rb to prevent file system stat calls for every template loading to see if it changed (this means that you have to restart the application to see template changes in production mode) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/environments/production.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'railties/environments/production.rb') diff --git a/railties/environments/production.rb b/railties/environments/production.rb index cb295b83f1..91f541c4b0 100644 --- a/railties/environments/production.rb +++ b/railties/environments/production.rb @@ -10,6 +10,7 @@ config.cache_classes = true # Full error reports are disabled and caching is turned on config.action_controller.consider_all_requests_local = false config.action_controller.perform_caching = true +config.action_view.cache_template_loading = true # Enable serving of images, stylesheets, and javascripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" -- cgit v1.2.3