collective / collective.elephantvocabulary

zope vocabulary with possibility to hide/show terms
http://pypi.python.org/pypi/collective.elephantvocabulary
GNU General Public License v2.0
1 stars 0 forks source link

Cache p.a.registry records used to populate vocabulary terms #7

Closed lukasgraf closed 8 years ago

lukasgraf commented 10 years ago

Currently, when terms get populated from registry records, those records get fetched on every __call__ of the vocabulary factory.

It might be desirable to cache those records (and invalidate those caches whenever the p.a.registry record is modified).

lukasgraf commented 10 years ago

Added some proof-of-concept code for caching the used registry records and perform cache invalidation.

(This branch is based on the lg-avoid-term-lists-growth branch, because otherwise all hell breaks loose).