mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
aedb2a7bae
Currently if you do `config.cache_store = :file_store` in an initializer, your app will boot and the cache contents will be stored in a directory called `{}` in your project root. This is unlikely to be the intended outcome. This PR raises an error if you call `config.cache_store = :file_store` without a path. The correct way to use the default cache path is `config.cache_store = :file_store, "#{config.root}/tmp/cache/"`. To preserve the current behavior: ```ruby config.cache_store = :file_store, "{}" ``` Co-authored-by: Ryuta Kamizono <kamipo@gmail.com> |
||
---|---|---|
.. | ||
behaviors | ||
stores | ||
behaviors.rb | ||
cache_entry_test.rb | ||
cache_key_test.rb | ||
cache_store_logger_test.rb | ||
cache_store_namespace_test.rb | ||
cache_store_setting_test.rb | ||
local_cache_middleware_test.rb |