From f60a7115a8a7be548081813c77b5ef66205e390a Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 23 Oct 2017 17:49:11 +1100 Subject: [PATCH] Enable caching with Memcached --- lemoncurry/settings/base.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lemoncurry/settings/base.py b/lemoncurry/settings/base.py index b973a26..294f994 100644 --- a/lemoncurry/settings/base.py +++ b/lemoncurry/settings/base.py @@ -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