Save sessions in the cache

This commit is contained in:
2018-07-18 08:26:39 +02:00
parent 6c98c9d7ca
commit 8d71edae5e
3 changed files with 137 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ from flask_security import SQLAlchemyUserDatastore, current_user, login_required
from sqlalchemy.orm.exc import NoResultFound, MultipleResultsFound
from calsocial.account import AccountBlueprint
from calsocial.cache import cache
from calsocial.cache import CachedSessionInterface, cache
from calsocial.utils import RoutedMixin
@@ -68,6 +68,8 @@ class CalendarSocialApp(Flask, RoutedMixin):
Flask.__init__(self, name)
self.session_interface = CachedSessionInterface()
self._timezone = None
config_name = os.environ.get('ENV', config or 'dev')