Commit ef99a3c8 authored by Yorick Peterse's avatar Yorick Peterse

Increase feature flag cache TTL to one hour

Flipper already takes care of flushing cache entries when
enabling/disabling features so it should be safe to increase the TTL.
This in turn should drastically reduce the number of Flipper queries
executed.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/40854
parent 0b032daa
---
title: Increase feature flag cache TTL to one hour
merge_request:
author:
type: performance
......@@ -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
......
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