1.3 KiB
1.3 KiB
stage | group | info |
---|---|---|
Enablement | Memory | To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments |
Changing application settings cache expiry interval (FREE SELF)
Application settings are cached for 60 seconds by default which should work
for most installations. A higher value would mean a greater delay between
changing an application setting and noticing that change come into effect.
A value of 0
would result in the application_settings
table being
loaded for every request causing extra load on Redis and/or PostgreSQL.
It is therefore recommended to keep the value above zero.
Change the application settings cache expiry
To change the expiry value:
For Omnibus installations
-
Edit
/etc/gitlab/gitlab.rb
:gitlab_rails['application_settings_cache_seconds'] = 60
-
Save the file, and reconfigure and restart GitLab for the changes to take effect:
gitlab-ctl reconfigure gitlab-ctl restart
For installations from source
-
Edit
config/gitlab.yml
:gitlab: application_settings_cache_seconds: 60
-
Save the file and restart GitLab for the changes to take effect.