[Zope] how to programmatically add document to cache

David Shaw david.shaw@zapmedia.com
Fri, 03 Aug 2001 20:31:42 -0400


> Hi, I'm creating a few DTML Documents from a python script.
> I have a Ram Cache Manager in the root that I'd like to
> associate this new document with. How do I do that from python?

Something like this is what you want to do:

mydoc.ZCacheable_setManagerId(manager_id="myRAMCacheMgr")