staticcache, makestaticcache.php and siteaccess

Author Message

Geraint Edwards

Thursday 30 June 2005 12:22:50 pm

In implementing the staticcache I "rediscovered" bug 6656 (http://ez.no/bugs/view/6656) and have been trying to get my head around what's going on.

In essence the heart of this bug is that makestaticcache.php doesn't read staticcache.ini{.append.php} files from siteaccess ini directories (apart from the DefaultAccess one) - the same problem arises with cache.php.

After quite a bit of experimentation and hacking it appears that you must specify the CachedSiteAccesses in the setting/override.staticcache.ini.append.php since they are ignored in the siteaccess ini file.

I'd really like to use the siteaccess ini files to their full in order to have different CachedURLArray and AlwaysUpdateArray values for some siteaccesses. This is not possible with the current code.

I have created modified versions of makestaticcache.php and ezstaticcache.php that allow me to cycle through the CachedSiteAccesses specified in the override directory ini file and use the CachedURLArray and AlwaysUpdateArray values from the specific siteaccess files together with any general values specified in the override directory.

If there is interest in these scripts then I'll add them as hacks in the contributions section for further testing.

Geraint

p.s. Georg - you may be interested to know that these modified scripts allow me to run two virtual server sites using the same DB without repeating the same content structure on both in the static cache.

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 18 2025 15:21:06
Script start
Timing: Jan 18 2025 15:21:06
Module start 'layout'
Timing: Jan 18 2025 15:21:06
Module start 'content'
Timing: Jan 18 2025 15:21:07
Module end 'content'
Timing: Jan 18 2025 15:21:07
Script end

Main resources:

Total runtime1.4962 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1797152.6406
Module start 'layout' 0.00550.0039 741.820339.4766
Module start 'content' 0.00941.4854 781.2969405.0547
Module end 'content' 1.49470.0014 1,186.35168.1250
Script end 1.4961  1,194.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2086160.0002
Check MTime0.00130.0888160.0001
Mysql Total
Database connection0.00090.059010.0009
Mysqli_queries1.451797.0266460.0316
Looping result0.00070.0447440.0000
Template Total1.461297.720.7306
Template load0.00220.150120.0011
Template processing1.458997.509220.7295
Template load and register function0.00080.054810.0008
states
state_id_array0.00160.106810.0016
state_identifier_array0.00260.176020.0013
Override
Cache load0.00180.1182110.0002
Sytem overhead
Fetch class attribute can translate value0.00120.076910.0012
Fetch class attribute name0.00190.128810.0019
XML
Image XML parsing0.00010.007210.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00060.0431100.0001
String conversion0.00000.000740.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs