diff options
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r-- | config/environments/development.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 31a3af77ba1..50d394859bc 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb @@ -9,7 +11,13 @@ Rails.application.configure do # Show full error reports and disable caching config.active_record.verbose_query_logs = true config.consider_all_requests_local = true - config.action_controller.perform_caching = false + + if Rails.root.join('tmp', 'caching-dev.txt').exist? + config.action_controller.perform_caching = true + config.action_controller.enable_fragment_cache_logging = true + else + config.action_controller.perform_caching = false + end # Show a warning when a large data set is loaded into memory config.active_record.warn_on_records_fetched_greater_than = 1000 |