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
9ed6fd43
Commit
9ed6fd43
authored
Jan 19, 2021
by
Sanad Liaquat
Committed by
Sean McGivern
Jan 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add application settings cache timeout config
Default value of application_settings_timeout to 60
parent
3e67e371
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
app/models/concerns/cacheable_attributes.rb
app/models/concerns/cacheable_attributes.rb
+1
-1
config/gitlab.yml.example
config/gitlab.yml.example
+3
-0
No files found.
app/models/concerns/cacheable_attributes.rb
View file @
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
config/gitlab.yml.example
View file @
9ed6fd43
...
...
@@ -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
...
...
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