Why doesn't subtree_expiry='europe/france' work?

Author Message

Will Diaz

Friday 23 June 2006 2:33:02 pm

A list of articles of class "feature" are displayed on the homepage. I would like this list to be cached until a new feature is published. The content structure looks like this:

Site Root
|-Europe
|--France
|---Feature 1
|---Feature 2
|---Feature 3

<i>(A "feature" is a custom class based on the "article" class, if that matters at all).</i>

Below is the cache-block that I wrote:

{cache-block subtree_expiry='europe/france/'}
 <div id="base-features">
  <div class="headline_orange">Features</div>
  <ul>
   (A loop of <li>s)
  </ul>
 </div>
{/cache-block}

Why doesn't the cache-block update when I publish a new feature?

<b>Update:</b> Removed extra code to make it easier to read.

Marco Zinn

Sunday 25 June 2006 1:03:52 am

Hm, IMHO, this should work, according to
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/miscellaneous/cache_block

I don't see the fetch call in your code snipped.
The only thing, that i could think of: DId you check, that the url_alias of your path actually _is_ europe/france and not europe__1/france, for example?
I guess, that subtree notation uses the url_alias, although this is not documented.

Marco
http://www.hyperroad-design.com

Mindshare Interactive Campaigns

Thursday 29 June 2006 11:51:34 am

The issue described by the OP can be fixed by ensuring that the cache-block that specifies the subtree_expiry is not nested within another cache-block. That type of nesting will prevent the subtree_expiry from working correctly.

http://www.mindshare.net

Piotrek Karaƛ

Tuesday 10 April 2007 9:04:45 am

Any success with subtree_expiry since June 2006? :))
I seem to be having the exact same problem at the time...

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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

Main resources:

Total runtime0.7700 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0391152.6406
Module start 'layout' 0.00520.0029 740.679739.4766
Module start 'content' 0.00810.7605 780.1563625.5234
Module end 'content' 0.76860.0014 1,405.679712.1250
Script end 0.7700  1,417.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4124160.0002
Check MTime0.00130.1708160.0001
Mysql Total
Database connection0.00140.185810.0014
Mysqli_queries0.717093.1165640.0112
Looping result0.00060.0839620.0000
Template Total0.735795.520.3679
Template load0.00200.261720.0010
Template processing0.733795.278720.3668
Template load and register function0.00010.017810.0001
states
state_id_array0.00110.148810.0011
state_identifier_array0.00170.220120.0008
Override
Cache load0.00170.2179230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.108440.0002
Fetch class attribute name0.00080.107060.0001
XML
Image XML parsing0.00190.241940.0005
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00100.1305230.0000
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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs