Expire Rails cache entries after two weeks

This should help prevent endless Redis growth.
This commit is contained in:
Jacob Vosmaer 2015-07-15 13:53:40 +02:00
parent 997a3b1d87
commit 82bb5c5e03
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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