mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Use LocMemCache in the development setup
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
This commit is contained in:
parent
62c9dc73e7
commit
488cd04856
1 changed files with 3 additions and 7 deletions
|
|
@ -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',
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue