Use database caching

pull/272/head
Karl Hobley 2020-10-15 13:51:01 +01:00
rodzic 836f5958c2
commit b7d8286895
2 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -93,6 +93,13 @@ if ELASTICSEARCH_ENDPOINT:
aws_service='es',
)
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'django_cache',
}
}
# Simplified static file serving.
# https://warehouse.python.org/project/whitenoise/

Wyświetl plik

@ -4,4 +4,4 @@ build:
release:
image: web
command:
- django-admin migrate --noinput
- django-admin createcachetable && django-admin migrate --noinput