RE: [Zope] Python, persistent objects and caching

2000-09-07 Thread Brian Lloyd
I'm developing a Python-based product that uses persistent objects in ZODB to store its configuration. No surprises there, but my product is also using volatile attributes to do a bit of caching of its own. The thing is, when ZODB takes a sweep every 60 seconds to flush it's own cache it

RE: [Zope] Python, persistent objects and caching

2000-09-07 Thread Dieter Maurer
Brian Lloyd writes: Soren Rough writes ... application level cache ... ... application objects flushed (including cache) One approach would be to cache your data in the module's namespace. For ex: mycache={} class MyClassThatKeepsGoingAway: ... def get_data(self,