From 1a40b8d1324f54c305aaa9f64f9d77bacc5b1c1e Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 22 Sep 2017 16:04:13 +0200 Subject: [PATCH] Move Sahana sessions to database, avoids locking sessions on long-running requests, resolves #24 --- sahana/srv/sahana/applications/eden/models/000_config.py | 2 ++ sambro/srv/sambro/applications/eden/models/000_config.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sahana/srv/sahana/applications/eden/models/000_config.py b/sahana/srv/sahana/applications/eden/models/000_config.py index f483d3f..6ec6c66 100644 --- a/sahana/srv/sahana/applications/eden/models/000_config.py +++ b/sahana/srv/sahana/applications/eden/models/000_config.py @@ -188,6 +188,8 @@ settings.frontpage.rss = [ # Memcache server to allow sharing of sessions across instances #settings.base.session_memcache = '127.0.0.1:11211' +settings.base.session_db = True + # UI options # Should user be prompted to save before navigating away? #settings.ui.navigate_away_confirm = False diff --git a/sambro/srv/sambro/applications/eden/models/000_config.py b/sambro/srv/sambro/applications/eden/models/000_config.py index 96eaf04..85e508d 100644 --- a/sambro/srv/sambro/applications/eden/models/000_config.py +++ b/sambro/srv/sambro/applications/eden/models/000_config.py @@ -188,6 +188,8 @@ settings.frontpage.rss = [ # Memcache server to allow sharing of sessions across instances #settings.base.session_memcache = '127.0.0.1:11211' +settings.base.session_db = True + # UI options # Should user be prompted to save before navigating away? #settings.ui.navigate_away_confirm = False