# HG changeset patch # User Goffi # Date 1516537041 -3600 # Node ID b39c527f208cc65ac9b8d97f78faaf771c745988 # Parent 1c9b6d2c30b5144f0ee93216ea3d90fc5eb3b3a8 pages (tickets): check cache in prepare_render instead of parse_url diff -r 1c9b6d2c30b5 -r b39c527f208c src/pages/tickets/page_meta.py --- 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}'))