[Zope] Clearing _v_ attributes

Marco Bizzarri m.bizzarri at icube.it
Wed Jan 19 08:26:35 EST 2005


Andrew Milton wrote:
> +-------[ Toby Dickenson ]----------------------
> | On Wednesday 19 January 2005 11:51, Andrew Milton wrote:
> | > +-------[ Pascal Peregrina ]----------------------
> | > | If I do a clearCaches() method that clears _v_ attributes on the object, 
> | how
> | > | can I make sure it will clear these attributes in all the Zope connections
> | > | that may have a cached copy of the object ?
> | > 
> | > Basically you can't. 
> | 
> | There is one very obvious way.... change a non-_v_ attribute of the object and 
> | commit it. Every other connection with an instance of that object in memory 
> | will lose the _v_ attribute at its next transaction boundary.
> 
> And your ZODB grows everytime you want to flush the cache...
> 

Could you please further detail the reason of the above (or provide 
pointers on this?)

Regards
Marco


More information about the Zope mailing list