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. Any ideas?
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
Hi there A strange one here : i cannot access some part of ZMI HELP system. running Zope 2.7 i got to the manage part of the site using my admin login and password. then when i try to access let say "Caching Policies Tool Interface" under API Reference i have a pop-up asking for authentication again. Trying to put in same admin login and password fails ... Something stupid i am missing here ? Thanx in advance seb Note : it is not a fresh database i ve upgraded from 2.6.2
sebastien Pastor wrote:
Something stupid i am missing here ?
I think it's a bug in 2.7.0 :-S Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Kevin Carlson wrote at 2004-2-24 15:26 -0500:
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.
When you do not use ZEO, then my "CCZSQLMethods" may help you: <http://www.dieter.handshake.de/pyprojects/zope> -- Dieter
participants (5)
-
Chris Withers -
Chris Withers -
Dieter Maurer -
Kevin Carlson -
sebastien Pastor