Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Turned on ActionView::Base.cache_template_loading by default in confi…

…g/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
  • Loading branch information...
commit d8f2fea813ef46022cf828eb90b2af9c656854e0 1 parent 7af985f
@dhh dhh authored
View
4 railties/CHANGELOG
@@ -1,6 +1,8 @@
*SVN*
-* Introduce `rake generate:secret` to output a crytographically secure secret key for use with cookie sessions. #xxxx [update from Trac]
+* 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]
+
+* Introduce `rake secret` to output a crytographically secure secret key for use with cookie sessions #xxxx [update from Trac]
* Fixed that local database creation should consider 127.0.0.1 local #9026 [parcelbrat]
View
1  railties/environments/production.rb
@@ -10,6 +10,7 @@
# 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"
View
8 railties/lib/tasks/misc.rake
@@ -4,9 +4,7 @@ task :environment do
end
require 'rails_generator/secret_key_generator'
-namespace :generate do
- desc 'Generate a crytographically secure secret key. This is typically used to generate a secret for cookie sessions. Pass a unique identifier to the generator using ID="some unique identifier" for greater security.'
- task :secret do
- puts Rails::SecretKeyGenerator.new(ENV['ID']).generate_secret
- end
+desc 'Generate a crytographically secure secret key. This is typically used to generate a secret for cookie sessions. Pass a unique identifier to the generator using ID="some unique identifier" for greater security.'
+task :secret do
+ puts Rails::SecretKeyGenerator.new(ENV['ID']).generate_secret
end
Please sign in to comment.
Something went wrong with that request. Please try again.