diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2018-04-12 21:45:17 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-04-12 14:45:17 +0200 |
commit | 50529cbceb84e611bca497624a7a4c38113e5135 (patch) | |
tree | 753e4e8975f0404717e451fceb64d341f19435fc /config/environments/development.rb | |
parent | 8e88a18316d45a459a31d67487bccc247592d187 (diff) |
Upgrade Rails to version 5.2.0 (#5898)
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r-- | config/environments/development.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 285fea8b8..b6478f16e 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -13,13 +13,14 @@ Rails.application.configure do config.consider_all_requests_local = true # Enable/disable caching. By default caching is disabled. + # Run rails dev:cache to toggle caching. if Rails.root.join('tmp/caching-dev.txt').exist? config.action_controller.perform_caching = true config.cache_store = :redis_store, ENV['REDIS_URL'], REDIS_CACHE_PARAMS config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}", + 'Cache-Control' => "public, max-age=#{2.days.to_i}", } else config.action_controller.perform_caching = false |