From: David Geller <dgeller@gm...> - 2006-04-01 17:21:58
I have a web application (using apache prefork, multiple processes, no
threading) where I generally want to use caching. I.e., I want to, say,
do a select, and then access that object's attributes without subsequent
However, I occassionaly (maybe at the start of each request?), want to
reinitialize the object from the database, since the database might have
How best to do that?
I see two methods mentioned (indirectly):
a. set the object.sqlmeta.expire -> True
b. call connection.cache.clear()
Well, (a) doesn't seem to do anything. (After setting, I try to access
the object's attributes - but no database access occurs)
And (b) works, but I am concerned with the comment in the code:
"Warning!! This can cause duplicate objects in memory."
Can an sqlobject expert prehaps shed some light here?
Get latest updates about Open Source Projects, Conferences and News.