From b5340c9f49c442395fb5f15c16832abc8a1428ed Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Mon, 10 Mar 2025 14:06:35 +0800 Subject: [PATCH] remove cache --- api/settings.py | 8 -------- entrypoint.sh | 1 - 2 files changed, 9 deletions(-) diff --git a/api/settings.py b/api/settings.py index 3bd235f..9f021c3 100644 --- a/api/settings.py +++ b/api/settings.py @@ -105,18 +105,10 @@ PROD_DATABASES = { }, } -PROD_CACHES = { - "default": { - "BACKEND": "django.core.cache.backends.db.DatabaseCache", - "LOCATION": "webpreview_api_cache", - } -} - if DEBUG: DATABASES = DEV_DATABASES else: DATABASES = PROD_DATABASES - CACHES = PROD_CACHES # Password validation # https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators diff --git a/entrypoint.sh b/entrypoint.sh index 0232825..a87fb1d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,4 @@ #!/bin/sh -python manage.py createcachetable python manage.py migrate --noinput exec gunicorn --bind 0.0.0.0:8000 api.asgi:application -k uvicorn.workers.UvicornWorker -w 5 \ No newline at end of file