remove cache

This commit is contained in:
2025-03-10 14:06:35 +08:00
parent aabbf77e1c
commit b5340c9f49
2 changed files with 0 additions and 9 deletions

View File

@@ -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

View File

@@ -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