Commit 921a27af authored by Sean McGivern's avatar Sean McGivern

Merge branch 'shl-application-settings-cache-timeout-config' into 'master'

Add application settings cache expiry config

See merge request gitlab-org/gitlab!51889
parents 4895877a 9ed6fd43
......@@ -83,6 +83,6 @@ module CacheableAttributes
end
def cache!
self.class.cache_backend.write(self.class.cache_key, self, expires_in: 1.minute)
self.class.cache_backend.write(self.class.cache_key, self, expires_in: Gitlab.config.gitlab['application_settings_cache_seconds'] || 60)
end
end
......@@ -165,6 +165,9 @@ production: &base
## Disable jQuery and CSS animations
# disable_animations: true
## Application settings cache expiry in seconds (default: 60)
# application_settings_cache_seconds: 60
## Reply by email
# Allow users to comment on issues and merge requests by replying to notification emails.
# For documentation on how to set this up, see http://doc.gitlab.com/ce/administration/reply_by_email.html
......
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