From 92c41a721c9da19fb56cb9940c49d42d548a4f65 Mon Sep 17 00:00:00 2001 From: Johnny Date: Thu, 15 Oct 2020 01:23:10 +0000 Subject: [PATCH] Adds cache definition to settings. --- evennia/settings_default.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/evennia/settings_default.py b/evennia/settings_default.py index ac00b18b29..d212e820fd 100644 --- a/evennia/settings_default.py +++ b/evennia/settings_default.py @@ -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 = [ {