mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-14 20:18:02 +00:00
Make response caching default and increase cache timeout to 15 minutes
This commit is contained in:
@@ -186,7 +186,7 @@ CACHES = {
|
|||||||
'filesystem': {
|
'filesystem': {
|
||||||
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
|
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
|
||||||
'LOCATION': '/var/tmp/ivatar_cache',
|
'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
|
# 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_IMAGES_MAX_AGE = 5 * 60
|
||||||
|
|
||||||
CACHE_RESPONSE = False
|
CACHE_RESPONSE = True
|
||||||
|
|
||||||
# This MUST BE THE LAST!
|
# This MUST BE THE LAST!
|
||||||
if os.path.isfile(os.path.join(BASE_DIR, 'config_local.py')):
|
if os.path.isfile(os.path.join(BASE_DIR, 'config_local.py')):
|
||||||
|
|||||||
Reference in New Issue
Block a user