mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-06 23:56:30 +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
|
# More robust caching configuration
|
||||||
CACHES = {
|
# More robust caching configuration
|
||||||
"default": {
|
# CACHES = {
|
||||||
"BACKEND": (
|
# "default": {
|
||||||
"django_redis.cache.RedisCache"
|
# "BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache",
|
||||||
if not DEBUG
|
# "LOCATION": "unix:/tmp/memcached.sock",
|
||||||
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 {}
|
|
||||||
),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Password validation
|
# Password validation
|
||||||
|
Reference in New Issue
Block a user