File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
railties/lib/rails/generators/rails/app/templates/config/environments Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,14 @@ Rails.application.configure do
23
23
<%- unless options.api? -%>
24
24
config.action_controller.perform_caching = true
25
25
config.action_controller.enable_fragment_cache_logging = true
26
-
27
26
<%- end -%>
28
- config.cache_store = :memory_store
29
27
config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{2.days.to_i}" }
30
28
else
31
29
config.action_controller.perform_caching = false
32
-
33
- config.cache_store = :null_store
34
30
end
31
+
32
+ # Change this to :null_store to avoid any caching
33
+ config.cache_store = :memory_store
35
34
<%- unless skip_active_storage? -%>
36
35
37
36
# Store uploaded files on the local file system (see config/storage.yml for options).
You can’t perform that action at this time.
0 commit comments