Cache the entire homepage for 5 minutes.

This means that comments and blog posts will take at most 5 minutes to show
up on /.
This commit is contained in:
2017-09-15 17:46:20 +02:00
parent 0b61e517d2
commit 9a692d475b
2 changed files with 14 additions and 0 deletions

View File

@@ -87,6 +87,9 @@ class CloudExtension(PillarExtension):
signal_user_changed_role.connect(self._user_changed_role)
from . import routes
routes.setup_app(app)
def _user_changed_role(self, sender, user: dict):
from pillar.api import service