Merge branch 'flipper-caching' into 'master'

Increase feature flag cache TTL to one hour

Closes #40854

See merge request gitlab-org/gitlab-ce!17213
This commit is contained in:
Douwe Maan 2018-02-19 15:45:37 +00:00
commit 31b38ac904
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
title: Increase feature flag cache TTL to one hour
merge_request:
author:
type: performance

View File

@ -8,7 +8,7 @@ Flipper.configure do |config|
cached_adapter = Flipper::Adapters::ActiveSupportCacheStore.new(
adapter,
Rails.cache,
expires_in: 10.seconds)
expires_in: 1.hour)
Flipper.new(cached_adapter)
end