[Zope] Invalidating a ZSQL cache

Chris Withers chris at simplistix.co.uk
Wed Feb 25 10:25:37 EST 2004


Kevin Carlson wrote:

> I have a situation where I would like to configure a ZSql query to keep 
> itself cached, but occasionally have the need to invalidate the cached 
> object and force the next result set to come from the database.  I have 
> looked at the Da.py code and it looks like it would be possible to 
> bypass the cache with a simple code modification, but that won't give me 
> what I need entirely.

Have you thought about using something like a RAMCacheManager on that ZSQL 
method and disabling the internal ZSQL caching?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope mailing list