Add caching functionality via Flask-Caching

This commit is contained in:
2018-07-18 08:23:50 +02:00
parent bcb7b524f3
commit 6c98c9d7ca
5 changed files with 73 additions and 9 deletions

View File

@@ -26,6 +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.utils import RoutedMixin
@@ -79,6 +80,8 @@ class CalendarSocialApp(Flask, RoutedMixin):
db.init_app(self)
cache.init_app(self)
babel = Babel(app=self)
babel.localeselector(get_locale)