Forums / Developer / very weird caching problem

very weird caching problem

Author Message

Ulf Bögeholz

Friday 01 October 2004 5:54:17 am

hi there,
ich have a perfectly running eZ3 site, which when transferred to a different server does not work properly anymore. On the new server changes do not seem to become noticeable. Interestingly, when you force a reload holding down the SHIFT button, you CAN see the changes. It shows as well on the site as on the admin interface, which, as you can think, is not at all usable like this.

any suggestions?

Tim Dickinson

Friday 01 October 2004 5:58:48 am

The Shift + Refresh is normally just Internet Explorer on your computer, or a proxy server caching the page, rather than any problem with eZpublish.

Clear your temporary internet files, and check your site again.

Regards

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Ulf Bögeholz

Friday 01 October 2004 6:15:08 am

i set the cache size to zero to check that out. no effect. further, the http headers of the page ARE correct, Pragma: No Cache, Expires: 1997, etc.

which is even more confusing

Paul Borgermans

Friday 01 October 2004 7:11:54 am

Hi

That looks really like a (reverse caching or transparat) proxy issue which ignores the expiry headers. Such proxies mostly do obey a SHIFT+RELOAD to refresh the cached copy. What are the response times when you see an old page? I think it will be too fast to be delivered by a "live" ez publish site.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

K259

Friday 01 October 2004 7:47:59 am

I would recommend that you test this:
do some publishing changes, run ./bin/shell/clearcache.sh --clear-all in the root directory of your ez publish installation. If the content-changes now are viewable, then there are some problems with the ez publish cachingsystem.

I've also notised some weird stuff with this..sometimes when I clear the content-cache with clearcache.sh --clear-all under high load on the server, some of our pages are just going blank, and I have to re-run the clearcache-command to make the content visible again.

Ulf Bögeholz

Sunday 03 October 2004 5:48:44 am

I still could not figure out what the problem is. i tried your suggestions concerning the browser cache. there it got interesting. i disabled the caching in firefox, set the cachesize to 0 and the time for history as well. still, i did not get the recent version of the site. as i cleared the, presumably empty, cache the site properly refreshed. i just don't know what happened there. though i figured out a difference between the two sites. the first one got adressed by a proper nameserver, unlike the second, whose domain i put manually in my c:\windows\hosts file.

any experiences with that kind of stuff?
thanks in advance
ulf

Ulf Bögeholz

Sunday 03 October 2004 6:05:21 am

this might be exactly the problem. i compared the status bar during the refreshing of the two different sites. while the working site featured mozilla to say "transferring data from..." the not properly working site produced "reading ...".
can anyone tell me what happens here?

Sven Anderson

Monday 04 October 2004 2:58:27 am

I have had similar problems with the browsers mentioned (firefox, mozilla and even Netscape7). These browsers seems to ingnore if the user settings concerning caching. Also Firefox ignores my setting of diskspace and caches the site anyways. So if you hit everytime you need a "new version" of your site, the "clear all cache" button in the firefox setting dialoge, it will get the newest site.

At the FAQ site of Firefox are some suggestions, how to disable cache totaly:
http://texturizer.net/firefox/tips.html#oth_cache

I hope this helps.
greets,
Sven