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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:34:50
Script start
Timing: Jan 19 2025 04:34:50
Module start 'layout'
Timing: Jan 19 2025 04:34:50
Module start 'content'
Timing: Jan 19 2025 04:34:51
Module end 'content'
Timing: Jan 19 2025 04:34:51
Script end

Main resources:

Total runtime0.8481 sec
Peak memory usage4,096.0000 KB
Database Queries78

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.1563152.6250
Module start 'layout' 0.00780.0046 741.781339.4453
Module start 'content' 0.01230.8344 781.2266702.0547
Module end 'content' 0.84670.0014 1,483.281316.1641
Script end 0.8481  1,499.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5073160.0003
Check MTime0.00200.2299160.0001
Mysql Total
Database connection0.00080.094210.0008
Mysqli_queries0.771991.0124780.0099
Looping result0.00090.1087760.0000
Template Total0.805495.020.4027
Template load0.00220.257920.0011
Template processing0.803294.695720.4016
Template load and register function0.00020.019710.0002
states
state_id_array0.00170.197710.0017
state_identifier_array0.00100.123520.0005
Override
Cache load0.00180.2177390.0000
Sytem overhead
Fetch class attribute can translate value0.00070.085450.0001
Fetch class attribute name0.00140.1707100.0001
XML
Image XML parsing0.00150.179850.0003
class_abstraction
Instantiating content class attribute0.00000.0019100.0000
General
dbfile0.00090.1018230.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs