RE: [Zope] Zope caching method results??
The page is changing... But the results I'm looking at aren't. The page outputs a list of lists. The number of items in the list is based on a ZipFile object (actually a custom object that inherits from that). So the number of items in the list, as well as the data, changes - except for this one field. I'd happily provide code for anyone interested in helping out... Thanks, John Toews -----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Tuesday, August 12, 2003 2:32 PM To: John Toews Cc: zope@zope.org Subject: Re: [Zope] Zope caching method results?? John Toews wrote at 2003-8-11 16:22 -0500:
I have an external method that is using a class I've written. The class > uses another module (dbxml for the Berkeley XML database). > It _appears_ as if Zope is caching function results from the dbxml > module. The data doesn't change, but the memory address does. > tmpXmlResults = self._manifest.queryWithXPath(resourceXpath, self._manifestcontext)
The code runs perfectly if run outside of Zope simply on the command line. > Is there any sort of caching that Zope does of non-product Python > objects? Or function results? Etc.?
I am quite convinced that Zope does not automatically cache the result of External Method calls. However, I remember to have read a similar complaint to yours in the mailing list. Thus, they may be a low probability of a bug. Much more likely is that there is some HTTP cache that caches your page and does not consult Zope at all. Such problems are easily uncovered when you request your browser to load the page without using any caches. Dieter
John Toews wrote at 2003-8-12 20:51 -0500:
The page is changing... But the results I'm looking at aren't.
The page outputs a list of lists. The number of items in the list is based on a ZipFile object (actually a custom object that inherits from that). So the number of items in the list, as well as the data, changes - except for this one field.
What do you mean with "this one field"? As you describe it, it does not seem to be a caching issue, unless your External Method is precisely responsible for "this one field" (and nothing else). Dieter
participants (2)
-
Dieter Maurer -
John Toews