changeset 1021:b39c527f208c

pages (tickets): check cache in prepare_render instead of parse_url
author Goffi <goffi@goffi.org>
date Sun, 21 Jan 2018 13:17:21 +0100
parents 1c9b6d2c30b5
children 6dc90f109e57
files src/pages/tickets/page_meta.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/pages/tickets/page_meta.py	Sun Jan 21 13:15:57 2018 +0100
+++ b/src/pages/tickets/page_meta.py	Sun Jan 21 13:17:21 2018 +0100
@@ -38,9 +38,6 @@
     if not node or node == u'@':
         node = u''
 
-
-    self.checkCache(request, C.CACHE_PUBSUB, service=service, node=node, short='tickets')
-
     data = self.getRData(request)
     data['service'] = service
     data['node'] = node
@@ -56,6 +53,8 @@
     service, node = data[u'service'], data[u'node']
     profile = self.getProfile(request) or C.SERVICE_PROFILE
 
+    self.checkCache(request, C.CACHE_PUBSUB, service=service, node=node, short='tickets')
+
     tickets = yield self.host.bridgeCall('ticketsGet', service.full() if service else u'', node, C.NO_LIMIT, [], '', {}, profile)
     template_data[u'tickets'] = [template_xmlui.create(self.host, x) for x in tickets[0]]
     template_data[u'on_ticket_click'] = data_objects.OnClick(url=self.getSubPageURL(request, 'tickets_view', '{item.id}'))