Adds cache definition to settings.

This commit is contained in:
Johnny 2020-10-15 01:23:10 +00:00
parent 8219a1db28
commit 92c41a721c

View file

@ -866,6 +866,21 @@ WEBCLIENT_OPTIONS = {
# 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.
TEMPLATES = [
{