Skip to content

Commit

Permalink
Revert "Update to use view.memoize. Thanks @ale-rt!"
Browse files Browse the repository at this point in the history
This reverts commit c79043d.
  • Loading branch information
alecpm authored and pbauer committed Aug 11, 2021
1 parent b13d32f commit 1b12086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plone/app/vocabularies/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 1b12086

Please sign in to comment.