[Zope] Unexpected script behavior

Michael Long mlong@datalong.com
Wed, 04 Dec 2002 14:35:32 -0500


Thanks for the info. It appears that it is the browser that is caching
the data. What is the header control that can be used to prevent this.

Thanks,
Mike

> [ Michael Long]
> > 
> > I am getting unexpected results from my python script. Here 
> > is a snippet form the python script:
> >...
> 
> > After the person is successfully deleted from the database 
> > another call to the database is made to get a list of people 
> > and set that to 'PersonList'. This variable is then used to 
> > render the page. The problem is that the deleted person still 
> > shows up in the rendered page. When the page is called a 
> > second time the correct data is shown. I have validated that 
> > the data is deleted from the database when expected. Why 
> > would the 'PersonList' not have the correct data?
> > 
> 
> Sounds like that browser is displaying a cached verison of the page.  If
> it is the browser doing the caching, you can set a header to control it.
> If it is Zope, you can change the cache setup.
> 
> Cheers,
> 
> Tom P
> 
>