refactor(settings): remove caching for now 🔨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m59s

This commit is contained in:
2025-07-05 15:02:50 +05:00
parent 3b3e963568
commit 683cfe76f1

View File

@ -147,27 +147,13 @@ DATABASES = {
# More robust caching configuration
CACHES = {
"default": {
"BACKEND": (
"django_redis.cache.RedisCache"
if not DEBUG
else "django.core.cache.backends.locmem.LocMemCache"
),
"LOCATION": (
env("REDIS_URL", default="redis://redis:6379/") if not DEBUG else "" # type: ignore
),
"OPTIONS": (
{
"CLIENT_CLASS": (
"django_redis.client.DefaultClient" if not DEBUG else None
),
}
if not DEBUG
else {}
),
}
}
# More robust caching configuration
# CACHES = {
# "default": {
# "BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache",
# "LOCATION": "unix:/tmp/memcached.sock",
# }
# }
# Password validation