[Opensource] Upgrading from 4.02 to 5.02: DBObject question
Michael Rimov
rimovm at centercomp.com
Thu Jun 19 11:06:55 PDT 2003
At 08:05 AM 6/19/2003 -0400, you wrote:
>Subclassing worked like a charm in the old version and I found it very
>useful. I use it in multiple places and would have noticed stale values
>quite quickly. I still use it in three or four other classes so I'll have to
>figure out how some way to use 'addToCache'.
<shrug> I'm sorry that I can't figure out why it works for you like
that. I've always known the cache to store by dbobject class name. So I'm
not sure what's going on.... :(
>In some way I'm surprised that the cache isn't by context/tablename. I
>haven't really dealt with multiple contexts yet but what happens if you want
>the same DBOBject stored in two different dtabases?
Each cache system is independent for each data context. Because the
initial data contexts were designed to be as independent as possible and
not permit accidental crosstalk. If you want to share the same dbobject,
you'll need some sort of proxy that stores it in each cache associated with
each data context.
-Mike
More information about the Opensource
mailing list