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

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 00:34:16
Script start
Timing: Jan 19 2025 00:34:16
Module start 'layout'
Timing: Jan 19 2025 00:34:16
Module start 'content'
Timing: Jan 19 2025 00:34:16
Module end 'content'
Timing: Jan 19 2025 00:34:16
Script end

Main resources:

Total runtime0.6882 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.9141152.6250
Module start 'layout' 0.00500.0029 740.539139.4453
Module start 'content' 0.00790.6789 779.9844582.9922
Module end 'content' 0.68670.0015 1,362.976612.1641
Script end 0.6882  1,375.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4412160.0002
Check MTime0.00120.1752160.0001
Mysql Total
Database connection0.00050.079510.0005
Mysqli_queries0.631591.7565620.0102
Looping result0.00080.1126600.0000
Template Total0.650594.520.3252
Template load0.00210.307720.0011
Template processing0.648394.201620.3242
Template load and register function0.00020.028910.0002
states
state_id_array0.00240.344710.0024
state_identifier_array0.00150.217820.0007
Override
Cache load0.00170.2536340.0001
Sytem overhead
Fetch class attribute can translate value0.00090.125930.0003
Fetch class attribute name0.00090.134150.0002
XML
Image XML parsing0.00090.129830.0003
class_abstraction
Instantiating content class attribute0.00000.001550.0000
General
dbfile0.00090.1363160.0001
String conversion0.00000.001140.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs