mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-06 17:53:29 +00:00
refactor(settings): remove caching for now 🔨
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m59s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m59s
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user