Re: [SQLObject] Caching, and Nonexistant objects
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2003-03-30 01:54:47
|
On Sat, 2003-03-29 at 16:15, Luke Opperman wrote: > I still only encounter this bug when destroying an object, > since destroy() makes no check for existance in the cache. > So our oblivious fix (ignoring why things still aren't being > cached) is to add: > > if self._SO_instanceCache.has_key(self.id): > del self._SO_instanceCache[self.id] > > at the end of destroy(). That's something I forgot to update when I put in the new cache system. I believe it should be okay now. Ian |