Forums / Developer / Static cache not working

Static cache not working

Author Message

luis muñoz

Wednesday 08 June 2005 11:30:11 am

I configured static cache and generated static cache, correctly stored, and rewrite engine working perfectly.
After that i removed the content of static folder manually with the intention of generate it again with new content but no changes to any ini file or rewrite configuration. After that the command line script wich generates the cache never created a file again, the content of the static folder is alwais empty.
We found that replacing the whole settings folder it works again, but only once.
When we delete the static cache there is no way to create it again.
Fixed the two bugs in makestaticcache script and cache.php file.
The rest of the site is working perfectly.
We have multiple siteaccess with the static cache configuration in the siteaccess.
Thank in advance

Geraint Edwards

Wednesday 29 June 2005 1:56:40 am

I see exactly the same behaviour i.e. "static" directory structure not recreated after it is removed manually - are there some SQL entries that need to be "flushed" to allow the cache to tbe recreated?

I have made the fixes to makestaticcache.php and cache.php and tried to recreate the cache using makestaticcache (with and without -f) and the admin interface to no avail.

Geraint

<b>SUBSEQUENT EDIT OF THIS POST</b>
I have now found my problem - in staticcache.ini he hostname is not actually the hostname but the value such that "http://$hostname$dir$url" makes a sensible ezalias request (NB $dir=siteaccess name and $url is the CachedURLArray entry). A little clarification in the staticcache.ini file may be helpful.

Georg Franz

Wednesday 29 June 2005 8:45:43 am

Hi Luis,

I had the same problems.

One issue was the hostname as Geraint described.

(If you forget to change the hostname entry in the staticcache.ini.append you will get an heartattack after running the the makestaticcache.php on the server ... You will see HTML-pages with "Host not found and can bought on sedo.de" content ... :)

Vice versa its the same problem. If you don't change the hostname on your local machine, you won't see any changes you made at your developer machine because ez is getting the page from the host which is defined in the ini-file ...

Another problem could be: Do you use 1 staticcache.ini.append in your override directory - or one by siteaccess? Maybe one staticcache.ini.append has different settings?

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

luis muñoz

Thursday 30 June 2005 5:27:19 am

Thanks for your answer. The host name was the problem, it's now fixed. Now i have another problem with the static cache, one of that wich produces heartattacks.
I was testing static cache in one part of the site and only for a few languages. It worked fine. The problem now is that certain parts of the site, like the homepage, sometimes are not cached right or get corrupted.
Sometimes i see only tables and no content, cometimes i lost navigation... and only for the pages where i'm using static cache.
And the worst of all is that after deleting static cache the problem is still there, looks like tpl-blocks where corrupted.
I'm sure it's static cache causing the problem, i disabled it this morning and the problem has gone and it never happened before.
I have all the static cache configuration in the siteaccess, only cached siteaccess is in settings/override.
Any idea?
Thanks

eZ debug

Timing: Jan 18 2025 20:51:37
Script start
Timing: Jan 18 2025 20:51:37
Module start 'content'
Timing: Jan 18 2025 20:51:37
Module end 'content'
Timing: Jan 18 2025 20:51:37
Script end

Main resources:

Total runtime0.1431 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.8438180.8359
Module start 'content' 0.00640.0066 769.679797.8672
Module end 'content' 0.01300.1300 867.5469527.0234
Script end 0.1430  1,394.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00372.5891200.0002
Check MTime0.00140.9545200.0001
Mysql Total
Database connection0.00060.445110.0006
Mysqli_queries0.095666.82091410.0007
Looping result0.00140.97451390.0000
Template Total0.129790.610.1297
Template load0.00120.830710.0012
Template processing0.128589.753910.1285
Override
Cache load0.00080.528910.0008
Sytem overhead
Fetch class attribute can translate value0.00090.653310.0009
XML
Image XML parsing0.00030.176110.0003
General
dbfile0.00352.4522200.0002
String conversion0.00000.003330.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs