mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
changed default value of caching
option to nil
The default is that's false, caching even if you do not specify the caching option is determined not to use, and `tmp/caching-dev.txt` will be deleted. If it is this, regardless of whether or not there is `tmp/caching-dev.txt`, be sure to order would be necessary to specify the caching option, I think that in than good to so as not to do anything by default.
This commit is contained in:
parent
dda31d59a0
commit
173b524cbc
2 changed files with 3 additions and 2 deletions
|
@ -93,7 +93,7 @@ module Rails
|
|||
DoNotReverseLookup: true,
|
||||
environment: (ENV['RAILS_ENV'] || ENV['RACK_ENV'] || "development").dup,
|
||||
daemonize: false,
|
||||
caching: false,
|
||||
caching: nil,
|
||||
pid: Options::DEFAULT_PID_PATH
|
||||
})
|
||||
end
|
||||
|
|
|
@ -54,7 +54,8 @@ class Rails::ServerTest < ActiveSupport::TestCase
|
|||
def test_caching_without_option
|
||||
args = []
|
||||
options = Rails::Server::Options.new.parse!(args)
|
||||
assert_equal nil, options[:caching]
|
||||
merged_options = Rails::Server.new.default_options.merge(options)
|
||||
assert_equal nil, merged_options[:caching]
|
||||
end
|
||||
|
||||
def test_caching_with_option
|
||||
|
|
Loading…
Reference in a new issue