diff options
Diffstat (limited to 'lib/feature.rb')
-rw-r--r-- | lib/feature.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/feature.rb b/lib/feature.rb index aadc2c64957..37cbe33f7c9 100644 --- a/lib/feature.rb +++ b/lib/feature.rb @@ -134,7 +134,11 @@ class Feature end def l1_cache_backend - Gitlab::ThreadMemoryCache.cache_backend + if Gitlab::Utils.to_boolean(ENV['USE_THREAD_MEMORY_CACHE']) + Gitlab::ThreadMemoryCache.cache_backend + else + Gitlab::ProcessMemoryCache.cache_backend + end end def l2_cache_backend |