ezcontentcache and ini variables.

Author Message

Chris Williams

Friday 12 November 2010 4:27:29 am

I was advised to look at "ezcontentcache" to start my research into understanding how caching is done in eZ.

./kernel/classes/ezcontentcache.php

On line 291, the following comments are written.

// Figure out the siteaccess which are related, first using the new
// INI setting RelatedSiteAccessList then the old existing one
// AvailableSiteAccessList

Firstly, thank you for the comments, it makes it so much easier for other developers to understand what was the aim. Please let it continue.

This topic is based on those very comments.

If you read the rest of the code in that method, you will see that it actually uses "RelatedSiteAccessList" if it exists and skips "AvailableSiteAccessList".

I read it, that it should try "RelatedSiteAccessList" then use "AvailableSiteAccessList", I further believe it should be like this, after I did a search of ez directory via the command line to discover the use of"AvailableSiteAccessList" in 4.4.

I would have made an issue about this, but im aware issues.ez.no are not the most read by others.

Equally, I had a peak into site.ini and there is no mention that it is the preffered ini setting variable, which again to me makes it more important to check both.

André R.

Friday 12 November 2010 5:37:56 am

RelatedSiteAccessList and AvailableSiteAccessList are different setting, the first is a list of site accesses that are related to current site access, share db for instance, share content on multi side setup and so on. The latter is list of all available site accesses on the eZ Publish installation.

So they are not interchangable, the reason eZContentCache fallbacks to AvailableSiteAccessList is that RelatedSiteAccessList was added in 3.8 or 3.9 and fallback for existing setups where provided for bc (backward compatibility) at the time. Code written after that mostly use one or the other depending on use.

So eZContentCache should be cleaned up to only use RelatedSiteAccessList imho.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 04:13:41
Script start
Timing: Jan 18 2025 04:13:41
Module start 'layout'
Timing: Jan 18 2025 04:13:41
Module start 'content'
Timing: Jan 18 2025 04:13:42
Module end 'content'
Timing: Jan 18 2025 04:13:42
Script end

Main resources:

Total runtime0.9842 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 591.5547152.6250
Module start 'layout' 0.00520.0031 744.179739.4531
Module start 'content' 0.00830.9744 783.6328529.7656
Module end 'content' 0.98270.0014 1,313.398412.1563
Script end 0.9841  1,325.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3063160.0002
Check MTime0.00130.1289160.0001
Mysql Total
Database connection0.00090.091310.0009
Mysqli_queries0.938995.4058540.0174
Looping result0.00050.0489520.0000
Template Total0.958397.420.4791
Template load0.00180.182020.0009
Template processing0.956597.187720.4782
Template load and register function0.00020.022910.0002
states
state_id_array0.00060.065710.0006
state_identifier_array0.00070.072520.0004
Override
Cache load0.00140.1433240.0001
Sytem overhead
Fetch class attribute can translate value0.00090.089520.0004
Fetch class attribute name0.00220.220530.0007
XML
Image XML parsing0.00060.065420.0003
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00080.0773170.0000
String conversion0.00000.001040.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
3content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 8

Time used to render debug report: 0.0001 secs