diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-07-15 13:53:40 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-07-15 13:53:40 +0200 |
commit | 82bb5c5e03858db094654a5ecced67a193be7931 (patch) | |
tree | 67003a29f11150105269a8d2e6611b8492ec41aa /config/application.rb | |
parent | 997a3b1d872f6b6b198582677acd67595bb15029 (diff) | |
download | gitlab-ce-82bb5c5e03858db094654a5ecced67a193be7931.tar.gz |
Expire Rails cache entries after two weeks
This should help prevent endless Redis growth.
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index 7e899cc3b5b..a96e22211e6 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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 |