From e579d9ce21b6b1933a9147cb142502888e239aba Mon Sep 17 00:00:00 2001 From: daniel-a-nguyen Date: Wed, 17 Dec 2014 16:31:12 -0800 Subject: [PATCH] Adds session_engine variable for memcached config The local_settings.py has the ability to use memcached for caching in general but does not set the session_engine variable to use it. Related to Ife7137054eafba548d13c58265abd6373679794e Closes-Bug: #1403685 Change-Id: Icebaf39eda9821ceb99d1348d37a9519c68071ef --- .../horizon/os-apply-config/etc/horizon/local_settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/elements/horizon/os-apply-config/etc/horizon/local_settings.py b/elements/horizon/os-apply-config/etc/horizon/local_settings.py index 7cac2bfc0..26aec978f 100644 --- a/elements/horizon/os-apply-config/etc/horizon/local_settings.py +++ b/elements/horizon/os-apply-config/etc/horizon/local_settings.py @@ -56,6 +56,10 @@ CACHES = { } } +{{#horizon.caches.memcached}} +SESSION_ENGINE = 'django.contrib.sessions.backends.cache' +{{/horizon.caches.memcached}} + # Send email to the console by default EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'