forked from gergely/calendar-social
Save sessions in the cache
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user