diff --git a/aa_project/settings/dev.py b/aa_project/settings/dev.py index 83515928..788606cc 100644 --- a/aa_project/settings/dev.py +++ b/aa_project/settings/dev.py @@ -88,6 +88,7 @@ def skip_static_requests(record): 'default': { 'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': os.environ['REDIS_URL'], + 'TIMEOUT': None, 'OPTIONS': { 'CLIENT_CLASS': 'django_redis.client.DefaultClient', 'PASSWORD': os.environ['REDIS_PASSWORD'] diff --git a/aa_project/settings/prod.py b/aa_project/settings/prod.py index 30a3adb5..7bfa47de 100644 --- a/aa_project/settings/prod.py +++ b/aa_project/settings/prod.py @@ -37,12 +37,13 @@ # Django Redis Cache Settings CACHES = { - "default": { - "BACKEND": "django_redis.cache.RedisCache", - "LOCATION": os.environ['REDIS_URL'], - "OPTIONS": { - "CLIENT_CLASS": "django_redis.client.DefaultClient", - "PASSWORD": os.environ['REDIS_PASSWORD'] + 'default': { + 'BACKEND': 'django_redis.cache.RedisCache', + 'LOCATION': os.environ['REDIS_URL'], + 'TIMEOUT': None, + 'OPTIONS': { + 'CLIENT_CLASS': 'django_redis.client.DefaultClient', + 'PASSWORD': os.environ['REDIS_PASSWORD'] }, } }