Adds cache definition to settings.
This commit is contained in:
parent
8219a1db28
commit
92c41a721c
1 changed files with 15 additions and 0 deletions
|
|
@ -866,6 +866,21 @@ WEBCLIENT_OPTIONS = {
|
||||||
# messages
|
# messages
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Django cache settings
|
||||||
|
# https://docs.djangoproject.com/en/dev/topics/cache/#setting-up-the-cache
|
||||||
|
CACHES = {
|
||||||
|
'default': {
|
||||||
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||||
|
},
|
||||||
|
'throttle': {
|
||||||
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||||
|
'TIMEOUT': 60 * 5,
|
||||||
|
'OPTIONS': {
|
||||||
|
'MAX_ENTRIES': 2000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# We setup the location of the website template as well as the admin site.
|
# We setup the location of the website template as well as the admin site.
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue