Commit aab0d1b0 authored by Stan Hu's avatar Stan Hu

Merge branch...

Merge branch '121670-redis-cache-read-error-prevents-cas-users-from-remaining-signed-in' into 'master'

Set default reconnect_attempts of Rails.cache to 1

See merge request gitlab-org/gitlab!22704
parents 99161054 becc516c
---
title: Fix CAS users being signed out repeatedly
merge_request: 22704
author:
type: fixed
...@@ -261,6 +261,10 @@ module Gitlab ...@@ -261,6 +261,10 @@ module Gitlab
caching_config_hash[:pool_timeout] = 1 caching_config_hash[:pool_timeout] = 1
end end
# Overrides RedisCacheStore's default value of 0
# This makes the default value the same with Gitlab::Redis::Cache
caching_config_hash[:reconnect_attempts] ||= ::Redis::Client::DEFAULTS[:reconnect_attempts]
config.cache_store = :redis_cache_store, caching_config_hash config.cache_store = :redis_cache_store, caching_config_hash
config.active_job.queue_adapter = :sidekiq config.active_job.queue_adapter = :sidekiq
......
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