Make Redis optional
This commit is contained in:
parent
7ecd90c407
commit
c2a7957095
@ -177,7 +177,7 @@ STATIC_ROOT = "compiledstatic/"
|
||||
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
|
||||
|
||||
# Redis
|
||||
if not DEBUG:
|
||||
if not DEBUG and os.getenv("REDIS_CACHE_LOCATION") is not None:
|
||||
CACHES = {
|
||||
"default": {
|
||||
"BACKEND": "redis_cache.RedisCache",
|
||||
|
Loading…
Reference in New Issue
Block a user