From 683cfe76f1fb98ed090f861721e4050704cddae8 Mon Sep 17 00:00:00 2001 From: i701 Date: Sat, 5 Jul 2025 15:02:50 +0500 Subject: [PATCH] =?UTF-8?q?refactor(settings):=20remove=20caching=20for=20?= =?UTF-8?q?now=20=F0=9F=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apibase/settings.py | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/apibase/settings.py b/apibase/settings.py index 80bda73..b91ac23 100644 --- a/apibase/settings.py +++ b/apibase/settings.py @@ -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