summaryrefslogtreecommitdiffstats
path: root/settings.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-08-09 20:33:09 +0200
committerDan McGee <dan@archlinux.org>2010-08-09 20:33:09 +0200
commitdbde19828fd935d3fcb6524145e7702b65184b9e (patch)
tree58e1f876946e9070d3285cb9e68be699cf99b1b5 /settings.py
parent141cff90d2bcdcce65ff44078eb4a40cafdef85b (diff)
downloadarchweb-dbde19828fd935d3fcb6524145e7702b65184b9e.tar.gz
archweb-dbde19828fd935d3fcb6524145e7702b65184b9e.tar.xz
Enable the cached_db session engine by default
This will work out well when using memcached in production, and should just fall back to using the DB when developing locally with no cache or any other sort of caching. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/settings.py b/settings.py
index f58c7ff..b1ad20e 100644
--- a/settings.py
+++ b/settings.py
@@ -89,6 +89,8 @@ AUTH_PROFILE_MODULE = 'main.UserProfile'
MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage'
+SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
+
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
@@ -109,4 +111,3 @@ INSTALLED_APPS = (
)
# vim: set ts=4 sw=4 et:
-