Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ivatar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
10
Issues
10
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oliver Falk
ivatar
Commits
060a664d
Verified
Commit
060a664d
authored
Mar 04, 2020
by
Oliver Falk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make response caching default and increase cache timeout to 15 minutes
parent
6bc0390b
Pipeline
#1967
passed with stage
in 7 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
config.py
config.py
+2
-2
No files found.
config.py
View file @
060a664d
...
...
@@ -186,7 +186,7 @@ CACHES = {
'filesystem'
:
{
'BACKEND'
:
'django.core.cache.backends.filebased.FileBasedCache'
,
'LOCATION'
:
'/var/tmp/ivatar_cache'
,
'TIMEOUT'
:
300
,
'TIMEOUT'
:
900
,
# 15 minutes
}
}
...
...
@@ -194,7 +194,7 @@ CACHES = {
# so the sites don't hit ivatar so much - it's what's set in the HTTP header
CACHE_IMAGES_MAX_AGE
=
5
*
60
CACHE_RESPONSE
=
Fals
e
CACHE_RESPONSE
=
Tru
e
# This MUST BE THE LAST!
if
os
.
path
.
isfile
(
os
.
path
.
join
(
BASE_DIR
,
'config_local.py'
)):
...
...
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