Expire Rails cache entries after two weeks
This should help prevent endless Redis growth.
This commit is contained in:
parent
997a3b1d87
commit
82bb5c5e03
|
@ -1,5 +1,8 @@
|
|||
Please view this file on the master branch, on stable branches it's out of date.
|
||||
|
||||
v 7.14.0 (unreleased)
|
||||
- Expire Rails cache entries after two weeks to prevent endless Redis growth
|
||||
|
||||
v 7.13.0 (unreleased)
|
||||
- Only enable HSTS header for HTTPS and port 443 (Stan Hu)
|
||||
- Fix user autocomplete for unauthenticated users accessing public projects (Stan Hu)
|
||||
|
|
|
@ -96,6 +96,7 @@ module Gitlab
|
|||
end
|
||||
|
||||
redis_config_hash[:namespace] = 'cache:gitlab'
|
||||
redis_config_hash[:expires_in] = 2.weeks # Cache should not grow forever
|
||||
config.cache_store = :redis_store, redis_config_hash
|
||||
|
||||
# This is needed for gitlab-shell
|
||||
|
|
Loading…
Reference in New Issue