From 1b1208627d28fcb786d72fd08f21884ef7aefe83 Mon Sep 17 00:00:00 2001 From: Alec Mitchell Date: Sun, 4 Apr 2021 20:14:31 -0700 Subject: [PATCH] Revert "Update to use view.memoize. Thanks @ale-rt!" This reverts commit c79043d4314ee6eb6b155abb24ac1dde8593cac1. --- plone/app/vocabularies/catalog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plone/app/vocabularies/catalog.py b/plone/app/vocabularies/catalog.py index a66c66f..538d506 100644 --- a/plone/app/vocabularies/catalog.py +++ b/plone/app/vocabularies/catalog.py @@ -8,7 +8,7 @@ from plone.app.vocabularies.terms import safe_simplevocabulary_from_values from plone.app.vocabularies.utils import parseQueryString from plone.memoize.instance import memoize -from plone.memoize.view import memoize as view_memoize +from plone.memoize import request from plone.registry.interfaces import IRegistry from plone.uuid.interfaces import IUUID from Products.CMFCore.utils import getToolByName @@ -822,7 +822,7 @@ def get_request(): return getRequest() @property - @view_memoize + @request.cache(get_key=request_query_cache_key, get_request="self.get_request()") def brains(self): return self.catalog(**self.query)