From 6d7a1d4e4a142179020fae108c1c99b92599f51d Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Tue, 4 Jul 2017 21:00:00 +0200 Subject: [PATCH] Added memcached cache --- dynamicweb/settings/prod.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dynamicweb/settings/prod.py b/dynamicweb/settings/prod.py index 4f96593f..9b5ffcc0 100644 --- a/dynamicweb/settings/prod.py +++ b/dynamicweb/settings/prod.py @@ -7,6 +7,13 @@ DEBUG=False EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +CACHES = { + 'default': { + 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', + 'LOCATION': '127.0.0.1:11211', + } +} + #MANAGERS = ADMINS REGISTRATION_MESSAGE['message'] = REGISTRATION_MESSAGE['message'].format(host='digitalglarus.ungleich.ch',slug='{slug}')