Enable caching with Memcached

This commit is contained in:
Danielle McLean 2017-10-23 17:49:11 +11:00
parent 8a412c705b
commit f60a7115a8
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -100,6 +100,15 @@ TEMPLATES = [
WSGI_APPLICATION = 'lemoncurry.wsgi.application' WSGI_APPLICATION = 'lemoncurry.wsgi.application'
# Cache
# https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-CACHES
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
# Database # Database
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases # https://docs.djangoproject.com/en/1.11/ref/settings/#databases