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
1 changed files with 9 additions and 0 deletions

View File

@ -100,6 +100,15 @@ TEMPLATES = [
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
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases