[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope
Subject:    Re: [Zope] Clearing _v_ attributes
From:       Toby Dickenson <tdickenson () devmail ! geminidataloggers ! co ! uk>
Date:       2005-01-19 12:46:19
Message-ID: 200501191246.19623.tdickenson () devmail ! geminidataloggers ! co ! uk
[Download RAW message or body]

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.


-- 
Toby Dickenson
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic