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

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

eZ debug

Timing: Jan 18 2025 11:15:44
Script start
Timing: Jan 18 2025 11:15:44
Module start 'content'
Timing: Jan 18 2025 11:15:45
Module end 'content'
Timing: Jan 18 2025 11:15:45
Script end

Main resources:

Total runtime0.6825 sec
Peak memory usage4,096.0000 KB
Database Queries201

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.8359180.8203
Module start 'content' 0.00580.5572 768.6563630.6172
Module end 'content' 0.56300.1194 1,399.2734337.3750
Script end 0.6824  1,736.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.6012210.0002
Check MTime0.00150.2155210.0001
Mysql Total
Database connection0.00070.106110.0007
Mysqli_queries0.604088.50322010.0030
Looping result0.00200.29711990.0000
Template Total0.653495.720.3267
Template load0.00190.283020.0010
Template processing0.651595.462020.3257
Template load and register function0.00020.022610.0002
states
state_id_array0.00040.060410.0004
state_identifier_array0.00090.137920.0005
Override
Cache load0.00160.2298230.0001
Sytem overhead
Fetch class attribute can translate value0.00130.194050.0003
Fetch class attribute name0.00170.252360.0003
XML
Image XML parsing0.00140.202150.0003
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00460.6749340.0001
String conversion0.00000.001230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs