Mercurial > rsstweet
diff config/environments/development.rb @ 225:782fece93768
Fix redis cache for dev
author | nanaya <me@nanaya.pro> |
---|---|
date | Tue, 25 Jan 2022 02:38:40 +0900 |
parents | ad6264cca788 |
children | 89f6c0016bab |
line wrap: on
line diff
--- a/config/environments/development.rb Sun Jan 23 05:18:49 2022 +0900 +++ b/config/environments/development.rb Tue Jan 25 02:38:40 2022 +0900 @@ -19,19 +19,19 @@ # 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.action_controller.enable_fragment_cache_logging = true + #if Rails.root.join("tmp/caching-dev.txt").exist? + # config.action_controller.perform_caching = true + # config.action_controller.enable_fragment_cache_logging = true - config.cache_store = :memory_store - config.public_file_server.headers = { - "Cache-Control" => "public, max-age=#{2.days.to_i}" - } - else - config.action_controller.perform_caching = false + # config.cache_store = :memory_store + # config.public_file_server.headers = { + # "Cache-Control" => "public, max-age=#{2.days.to_i}" + # } + #else + # config.action_controller.perform_caching = false - config.cache_store = :null_store - end + # config.cache_store = :null_store + #end # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log