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

eZ debug

Timing: Jan 19 2025 01:18:06
Script start
Timing: Jan 19 2025 01:18:06
Module start 'content'
Timing: Jan 19 2025 01:18:06
Module end 'content'
Timing: Jan 19 2025 01:18:07
Script end

Main resources:

Total runtime0.8637 sec
Peak memory usage4,096.0000 KB
Database Queries215

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.9531180.8359
Module start 'content' 0.00740.7447 769.7891707.1328
Module end 'content' 0.75200.1115 1,476.9219340.4375
Script end 0.8635  1,817.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5016210.0002
Check MTime0.00160.1821210.0001
Mysql Total
Database connection0.00100.116810.0010
Mysqli_queries0.779090.19162150.0036
Looping result0.00200.23522130.0000
Template Total0.827095.720.4135
Template load0.00240.276920.0012
Template processing0.824695.471420.4123
Template load and register function0.00020.028110.0002
states
state_id_array0.00100.113910.0010
state_identifier_array0.00130.145420.0006
Override
Cache load0.00200.2345390.0001
Sytem overhead
Fetch class attribute can translate value0.00170.202260.0003
Fetch class attribute name0.00140.1631100.0001
XML
Image XML parsing0.00160.184360.0003
class_abstraction
Instantiating content class attribute0.00000.0017100.0000
General
dbfile0.00500.5760340.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs