[Zope] Unexpected script behavior

Passin, Tom tpassin@mitretek.org
Wed, 4 Dec 2002 12:10:19 -0500


[ Michael Long]
>=20
> I am getting unexpected results from my python script. Here=20
> is a snippet form the python script:
>...

> After the person is successfully deleted from the database=20
> another call to the database is made to get a list of people=20
> and set that to 'PersonList'. This variable is then used to=20
> render the page. The problem is that the deleted person still=20
> shows up in the rendered page. When the page is called a=20
> second time the correct data is shown. I have validated that=20
> the data is deleted from the database when expected. Why=20
> would the 'PersonList' not have the correct data?
>=20

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