Commit 6a7affe3 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'sh-enable-redis-key-compression' into 'master'

Enable Redis cache key compression

Closes #198586

See merge request gitlab-org/gitlab!27254
parents 45e3f2e5 8c717504
---
title: Enable Redis cache key compression
merge_request: 27254
author:
type: performance
......@@ -258,7 +258,7 @@ module Gitlab
# Full list of options:
# https://api.rubyonrails.org/classes/ActiveSupport/Cache/RedisCacheStore.html#method-c-new
caching_config_hash = Gitlab::Redis::Cache.params
caching_config_hash[:compress] = false
caching_config_hash[:compress] = Gitlab::Utils.to_boolean(ENV.fetch('ENABLE_REDIS_CACHE_COMPRESSION', '1'))
caching_config_hash[:namespace] = Gitlab::Redis::Cache::CACHE_NAMESPACE
caching_config_hash[:expires_in] = 2.weeks # Cache should not grow forever
if Gitlab::Runtime.multi_threaded?
......
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