kopia lustrzana https://github.com/wagtail/bakerydemo
Use database caching
rodzic
836f5958c2
commit
b7d8286895
|
@ -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/
|
||||
|
||||
|
|
|
@ -4,4 +4,4 @@ build:
|
|||
release:
|
||||
image: web
|
||||
command:
|
||||
- django-admin migrate --noinput
|
||||
- django-admin createcachetable && django-admin migrate --noinput
|
||||
|
|
Ładowanie…
Reference in New Issue