diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-09 12:08:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-09 12:08:20 +0300 |
commit | d9f331328ab89d8423cb43ee9103f2a39b473d7f (patch) | |
tree | 15133b6f3388df1df271a8c64b74d5ce53baa466 /config/application.rb | |
parent | 828858774207747860f4914e523a7864b5e56ccb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/config/application.rb b/config/application.rb index d0c211bf608..0752b6d15a3 100644 --- a/config/application.rb +++ b/config/application.rb @@ -17,10 +17,6 @@ module Gitlab class Application < Rails::Application require_dependency Rails.root.join('lib/gitlab') require_dependency Rails.root.join('lib/gitlab/utils') - require_dependency Rails.root.join('lib/gitlab/redis/wrapper') - require_dependency Rails.root.join('lib/gitlab/redis/cache') - require_dependency Rails.root.join('lib/gitlab/redis/queues') - require_dependency Rails.root.join('lib/gitlab/redis/shared_state') require_dependency Rails.root.join('lib/gitlab/current_settings') require_dependency Rails.root.join('lib/gitlab/middleware/read_only') require_dependency Rails.root.join('lib/gitlab/middleware/basic_health_check') @@ -262,17 +258,6 @@ module Gitlab end end - # Use caching across all environments - # Full list of options: - # https://api.rubyonrails.org/classes/ActiveSupport/Cache/RedisCacheStore.html#method-c-new - caching_config_hash = {} - caching_config_hash[:redis] = Gitlab::Redis::Cache.pool - caching_config_hash[:compress] = Gitlab::Utils.to_boolean(ENV.fetch('ENABLE_REDIS_CACHE_COMPRESSION', '1')) - caching_config_hash[:namespace] = Gitlab::Redis::Cache::CACHE_NAMESPACE - caching_config_hash[:expires_in] = 2.weeks # Cache should not grow forever - - config.cache_store = :redis_cache_store, caching_config_hash - config.active_job.queue_adapter = :sidekiq # This is needed for gitlab-shell |