[Zope] Programmatically flushing entries from RAM cache?

Paul Winkler pw_lists at slinkp.com
Wed Dec 14 22:15:13 EST 2005


On Thu, Dec 15, 2005 at 11:45:51AM +0900, John Barham wrote:
> Is it possible to flush a path w/ a specific argument from a RAM cache
> from a Python script?

I'm not sure what the "specific argument" refers to, but
in general, sure. Just do this:

    ob = context.restrictedTraverse(some_path)
    ob.ZCacheable_invalidate()

But I think you need the "View management screens" permission.
(I have no idea why that one was chosen.)
 
-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope mailing list