diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /config/environments | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) | |
download | gitlab-ce-7e9c479f7de77702622631cff2628a9c8dcbc627.tar.gz |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'config/environments')
-rw-r--r-- | config/environments/development.rb | 2 | ||||
-rw-r--r-- | config/environments/test.rb | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 9d4fc6ba5e9..31a3af77ba1 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -4,7 +4,7 @@ Rails.application.configure do # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. - config.cache_classes = false + config.cache_classes = Gitlab::Utils.to_boolean(ENV['CACHE_CLASSES'], default: false) # Show full error reports and disable caching config.active_record.verbose_query_logs = true diff --git a/config/environments/test.rb b/config/environments/test.rb index f3a7f894b73..4e359cd308c 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -17,9 +17,7 @@ Rails.application.configure do # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! - - # Code doesn't change in CI so we don't need code-reloading - config.cache_classes = !!ENV['CI'] + config.cache_classes = Gitlab::Utils.to_boolean(ENV['CACHE_CLASSES'], default: false) # Configure static asset server for tests with Cache-Control for performance config.assets.compile = false if ENV['CI'] |