TemplateCache problem

Author Message

Pierre Tissot

Thursday 23 March 2006 5:04:05 am

Hi,

I have the following problem in my site, one page is used to show several kind of information depending of a parameter passed to the view:

http://localhost/chiffres_cles/paysages_pub/(view)/0

http://localhost/chiffres_cles/paysages_pub/(view)/1

http://localhost/chiffres_cles/paysages_pub/(view)/2

so the same template shows different information because of the parameter passed.

If I disable the TemplateCache every thing work fine, but i want to enable this because of performance issues and apparently the cache is done with the url without the parameter. No matter what link used above, the page is always the default one and the content do not act dinamically

Is this a limitation of ez or bad way of developing the site

Betsy Gamrat

Thursday 23 March 2006 2:43:58 pm

Try disabling the content/view caching, and reenable the template caching with keys that include the view parameters to ensure each display is properly cached.

{cache-block ... keys=array($node.node_id,$view_parameters.view)}

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 20 2025 23:36:42
Script start
Timing: Jan 20 2025 23:36:42
Module start 'layout'
Timing: Jan 20 2025 23:36:42
Module start 'content'
Timing: Jan 20 2025 23:36:43
Module end 'content'
Timing: Jan 20 2025 23:36:43
Script end

Main resources:

Total runtime0.5754 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.0042 587.8906151.1953
Module start 'layout' 0.00420.0019 739.085936.6172
Module start 'content' 0.00610.5684 775.7031514.2344
Module end 'content' 0.57450.0009 1,289.93757.8750
Script end 0.5754  1,297.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5504160.0002
Check MTime0.00130.2249160.0001
Mysql Total
Database connection0.00070.129310.0007
Mysqli_queries0.536893.2837540.0099
Looping result0.00050.0937520.0000
Template Total0.549195.420.2746
Template load0.00200.339020.0010
Template processing0.547195.084120.2736
Template load and register function0.00020.037710.0002
states
state_id_array0.00080.140110.0008
state_identifier_array0.00100.175320.0005
Override
Cache load0.00160.2733150.0001
Sytem overhead
Fetch class attribute can translate value0.00070.127920.0004
Fetch class attribute name0.00120.203630.0004
XML
Image XML parsing0.00060.112320.0003
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00090.1536160.0001
String conversion0.00000.000940.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
2content/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: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs