aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage
diff options
context:
space:
mode:
authorRob Jonson <rob@hobbyistsoftware.com>2018-10-09 11:48:40 +0100
committerRob Jonson <rob@hobbyistsoftware.com>2018-10-09 11:48:40 +0100
commitd8707e0dfc4a3eff6908aa9eba93a4c3961d3d2c (patch)
treef225e7f0cf3fc68edf9660d146e8974df9331685 /activestorage
parenta1ee4a9ff9d4a3cb255365310ead0dc7b739c6be (diff)
downloadrails-d8707e0dfc4a3eff6908aa9eba93a4c3961d3d2c.tar.gz
rails-d8707e0dfc4a3eff6908aa9eba93a4c3961d3d2c.tar.bz2
rails-d8707e0dfc4a3eff6908aa9eba93a4c3961d3d2c.zip
enable_fragment_cache_logging
fragment caching was refactored in (I think 5.2) and by default doesn't log cache info this is confusing in development where rails dev:cache now turns on caching, but doesn't show any different logging output better to enable debugging by default for dev - and let people turn it off if preferred
Diffstat (limited to 'activestorage')
-rw-r--r--activestorage/test/dummy/config/environments/development.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activestorage/test/dummy/config/environments/development.rb b/activestorage/test/dummy/config/environments/development.rb
index 47fc5bf25c..4b80d291ca 100644
--- a/activestorage/test/dummy/config/environments/development.rb
+++ b/activestorage/test/dummy/config/environments/development.rb
@@ -17,6 +17,7 @@ Rails.application.configure do
# Enable/disable caching. By default caching is disabled.
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 = {