syntax for subtree_expiry in cache block

Author Message

Marko Žmak

Monday 25 September 2006 5:35:54 am

The documentations says that cache-block should be used like this:

{cache-block subtree_expiry='products/'}

that is, with the trailing "/". I wonder if cache-block will work without the trailing "/". Can anyone answer this?

I personally don't see any reason why "/" should be obligatory in the end. And also it complicates things when you want to use something like this:

$node.url_alias

for subtree_expiry parameter, since $ndoe.url_alias doesn't have the trailing "/".

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Xavier Dutoit

Monday 25 September 2006 6:08:01 am

Or, for that matter, having and id instead of a path.

Have you tried with node.node_alias ? Does it work ?

X+

http://www.sydesy.com

Nabil Alimi

Tuesday 26 September 2006 8:02:07 am

Actually, it works without the last trailing slash.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Marko Žmak

Friday 06 October 2006 8:40:45 am

Sorry for the late answer. Yes, subtree_expiry does work wihouth the trailing slash.

But it would be also nice to have the possibility of using it with node_id. Would such usage speed up or slow down the template cache system?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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

Main resources:

Total runtime0.7484 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.0049 589.1641152.6406
Module start 'layout' 0.00490.0028 741.804739.4766
Module start 'content' 0.00770.7392 781.2813598.3750
Module end 'content' 0.74690.0015 1,379.656312.1250
Script end 0.7483  1,391.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4344160.0002
Check MTime0.00140.1824160.0001
Mysql Total
Database connection0.00060.074610.0006
Mysqli_queries0.691192.3418620.0111
Looping result0.00070.0939600.0000
Template Total0.720796.320.3603
Template load0.00200.263720.0010
Template processing0.718796.030120.3593
Template load and register function0.00010.019510.0001
states
state_id_array0.00100.135210.0010
state_identifier_array0.00070.091820.0003
Override
Cache load0.00170.2218220.0001
Sytem overhead
Fetch class attribute can translate value0.00140.187930.0005
Fetch class attribute name0.00120.163470.0002
XML
Image XML parsing0.00180.238330.0006
class_abstraction
Instantiating content class attribute0.00000.002380.0000
General
dbfile0.00110.1407300.0000
String conversion0.00000.001340.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.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/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs