forked from gergely/calendar-social
Add caching functionality via Flask-Caching
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user