❄️ Make separate redis db for static content

This commit is contained in:
Lacey Williams Henschel
2023-05-03 14:11:17 -07:00
parent 3368a74d8d
commit eb23b08e11

View File

@@ -269,7 +269,7 @@ CACHES = {
},
"static_content": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": f"redis://{REDIS_HOST}:6379",
"LOCATION": f"redis://{REDIS_HOST}:6379/2",
"TIMEOUT": env(
"STATIC_CACHE_TIMEOUT", default=86400
), # Cache timeout in seconds: 1 day