From 488cd04856b494877679798c6fda224a4df3376f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksi=20H=C3=A4kli?= Date: Tue, 26 Feb 2019 16:41:06 +0200 Subject: [PATCH] Use LocMemCache in the development setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aleksi Häkli --- axes/tests/settings.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/axes/tests/settings.py b/axes/tests/settings.py index 46d46ad..600182d 100644 --- a/axes/tests/settings.py +++ b/axes/tests/settings.py @@ -11,13 +11,9 @@ DATABASES = { CACHES = { 'default': { # This cache backend is OK to use in development and testing - # but has the potential to break production setups with more than on server - # due to each computer having their own filesystems and cache files - 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', - 'LOCATION': os.path.abspath(os.path.join(tempfile.gettempdir(), 'axes')), - 'OPTIONS': { - 'MAX_ENTRIES': 420, - } + # but has the potential to break production setups with more than on process + # due to each process having their own local memory based cache + 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', } }