Forums / General / Why doesn't subtree_expiry='europe/france' work?
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 tohttp://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