File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 20
20
if Rails . root . join ( "tmp/caching-dev.txt" ) . exist?
21
21
config . action_controller . perform_caching = true
22
22
config . action_controller . enable_fragment_cache_logging = true
23
-
24
- config . cache_store = :memory_store
25
23
config . public_file_server . headers = { "cache-control" => "public, max-age=#{ 2 . days . to_i } " }
26
24
else
27
25
config . action_controller . perform_caching = false
28
-
29
- config . cache_store = :null_store
30
26
end
31
27
28
+ # Change to :null_store to avoid any caching.
29
+ config . cache_store = :memory_store
30
+
32
31
# Don't care if the mailer can't send.
33
32
config . action_mailer . raise_delivery_errors = false
34
33
63
62
config . active_record . verbose_query_logs = true
64
63
65
64
# Append comments with runtime information tags to SQL queries in logs.
66
- # config.active_record.query_log_tags_enabled = true
65
+ config . active_record . query_log_tags_enabled = true
67
66
68
67
# Highlight code that enqueued background job in logs.
69
68
config . active_job . verbose_enqueue_logs = true
Original file line number Diff line number Diff line change 15
15
# Turn on fragment caching in view templates.
16
16
config . action_controller . perform_caching = true
17
17
18
- # Disable serving static files from `public/`, relying on NGINX/Apache to do so instead .
19
- config . public_file_server . enabled = ENV [ "RAILS_SERVE_STATIC_FILES" ] . present?
18
+ # Disable serving static files from `public/`.
19
+ config . public_file_server . enabled = false
20
20
21
21
# Cache assets for far-future expiry since they are all digest stamped.
22
22
# config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" }
You can’t perform that action at this time.
0 commit comments