[Zope-dev] Non-undoable storage
Shane Hathaway
shane@digicool.com
Tue, 12 Jun 2001 09:28:39 -0400 (EDT)
On Tue, 12 Jun 2001, Morten W. Petersen wrote:
> On Tue, 12 Jun 2001, Shane Hathaway wrote:
>
> > Did you catalog each message? What version of Zope?
>
> Yes, every message was cataloged. Zope version 2.3.2
>
> > 3) Manually zap the caches periodically, which is a capability of Zope
> > 2.4.x.
>
> Okay, this is interesting. Any examples on how to implement cache
> zapping?
self._p_jar._resetCache() is how you do it. It doesn't break circular
references within the database, but normally there shouldn't be any
circular references.
Be careful with _resetCache(). It should only be called when you know
there aren't any objects waiting to be written (within the thread), such
as just after a call to get_transaction().commit(1).
Shane