Commit 7f86daac authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'dev-caching' into 'master'

Support caching in development environment

See merge request gitlab-org/gitlab!54103
parents 86ce3032 95db3172
......@@ -11,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
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment