From dd820abdb66ea1c226a40eb8b953ecd2fa01a8d6 Mon Sep 17 00:00:00 2001 From: David Lyle Date: Mon, 7 Mar 2016 17:48:22 -0700 Subject: [PATCH] Add missing setting for cache The install guide instructs how to use memcached for a session store for Horizon. It configures the caches, but does not actually tell Horizon to use it for sessions. The default is signed-cookies for sessions not caching. This patch adds the setting to tell Horizon to use the cache for sessions. Change-Id: I7cd2add9df5dd699879dbdd1406495dc03f5267b --- doc/install-guide/source/horizon-install.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/install-guide/source/horizon-install.rst b/doc/install-guide/source/horizon-install.rst index d1885cecc5..76cc6310c5 100644 --- a/doc/install-guide/source/horizon-install.rst +++ b/doc/install-guide/source/horizon-install.rst @@ -107,6 +107,8 @@ Install and configure components .. code-block:: ini + SESSION_ENGINE = 'django.contrib.sessions.backends.cache' + CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', @@ -191,6 +193,8 @@ Install and configure components .. code-block:: ini + SESSION_ENGINE = 'django.contrib.sessions.backends.cache' + CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', @@ -275,6 +279,8 @@ Install and configure components .. code-block:: ini + SESSION_ENGINE = 'django.contrib.sessions.backends.cache' + CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',