diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-16 23:10:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-16 23:10:48 +0000 |
commit | d8f2fea813ef46022cf828eb90b2af9c656854e0 (patch) | |
tree | 1accde8022e01ef5aab35ad8f3d54e2c53f32ea4 /railties/environments | |
parent | 7af985f74fdaead950986038570f4d00befe7fc0 (diff) | |
download | rails-d8f2fea813ef46022cf828eb90b2af9c656854e0.tar.gz rails-d8f2fea813ef46022cf828eb90b2af9c656854e0.tar.bz2 rails-d8f2fea813ef46022cf828eb90b2af9c656854e0.zip |
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
Diffstat (limited to 'railties/environments')
-rw-r--r-- | railties/environments/production.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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" |