Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0dad6b2d
Commit
0dad6b2d
authored
May 05, 2021
by
Craig Norris
Committed by
Suzanne Selhorn
May 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update cache expiry interval page for CTRT
parent
20e92797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
doc/administration/application_settings_cache.md
doc/administration/application_settings_cache.md
+10
-10
No files found.
doc/administration/application_settings_cache.md
View file @
0dad6b2d
...
...
@@ -4,16 +4,15 @@ group: Memory
info
:
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
---
# Chang
ing application settings cache expiry interval
**(FREE SELF)**
# Chang
e the expiration interval for application cache
**(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.
By default, GitLab caches application settings for 60 seconds. Occasionally,
you may need to increase that interval to have more delay between application
setting changes and when users notice those changes in the application.
## Change the application settings cache expiry
We recommend you set this value to greater than
`0`
seconds. Setting it to
`0`
causes the
`application_settings`
table to load for every request. This causes
extra load for Redis and PostgreSQL.
To change the expiry value:
...
...
@@ -25,7 +24,8 @@ To change the expiry value:
gitlab_rails
[
'application_settings_cache_seconds'
]
=
60
```
1.
Save the file, and reconfigure and restart GitLab for the changes to take effect:
1.
Save the file, and then reconfigure and restart GitLab for the changes to
take effect:
```
shell
gitlab-ctl reconfigure
...
...
@@ -43,5 +43,5 @@ To change the expiry value:
application_settings_cache_seconds
:
60
```
1.
Save the file
and
[
restart
](
restart_gitlab.md#installations-from-source
)
1.
Save the file
, and then
[
restart
](
restart_gitlab.md#installations-from-source
)
GitLab for the changes to take effect.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment