[Zope-DB] Controlling Z SQL caching

Dieter Maurer dieter at handshake.de
Wed Feb 25 16:30:51 EST 2004


Ian Bicking wrote at 2004-2-24 16:12 -0600:
>I've decided that I definitely need some caching in a database-driven 
>application I'm working on, but I need to be able to invalidate the 
>cache on a query.

Have a look at "CCZSQLMethods"

  <http://www.dieter.handshake.de/pyprojects/zope>

It will not work for a ZEO setup.

I don't see any way to do that with Z SQL methods. 

You can flush the cache by writing the Z SQL Method ("_p_changed=1")
and deleting its "_v_" attributes.

-- 
Dieter



More information about the Zope-DB mailing list