Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-07-15 14:53:40 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-07-15 14:53:40 +0300
commit82bb5c5e03858db094654a5ecced67a193be7931 (patch)
tree67003a29f11150105269a8d2e6611b8492ec41aa /config
parent997a3b1d872f6b6b198582677acd67595bb15029 (diff)
Expire Rails cache entries after two weeks
This should help prevent endless Redis growth.
Diffstat (limited to 'config')
-rw-r--r--config/application.rb1
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