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).


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to