Use LocMemCache in the development setup

Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
This commit is contained in:
Aleksi Häkli 2019-02-26 16:41:06 +02:00
parent 62c9dc73e7
commit 488cd04856
No known key found for this signature in database
GPG key ID: 3E7146964D726BBE

View file

@ -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',
}
}