# HG changeset patch # User nanaya # Date 1643045920 -32400 # Node ID 782fece93768fbf332982c610a33eb6f1fc2dbed # Parent 657d99f51749a7de1e4b4ff37d1e5bb4178e3503 Fix redis cache for dev diff -r 657d99f51749 -r 782fece93768 config/environments/development.rb --- 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