Ausum Studio wrote at 2005-9-26 03:19 -0500:
>I'd like to RAM cache the result of a long-runing ZopeFind method, formatted
>to a plain list of objects. But the RAM cache doesn't store the list and
>hence every time the supossedly cached method is called, the ZopeFind
>process id triggered. Other data (like the lenght of the resulting list) is
>stored and retrieved with no problem, telling by the cache manager's stats
>Is that normal behaviour of the RAM cache machinery?
It is very dangerous (and almost impossible) to cache persistent objects
outside of their ZODB connection.
The RAM Cache Manager knows about this danger and tries to make
sure, it caches only simple objects (not sure that it catches
For this reason, you cannot cache the full result of a "ZopeFind".
However, you can cache the paths part of it.
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -