cache blocks with include operator

Author Message

Mickel Scofield

Tuesday 26 June 2007 3:38:11 am

Hi;

I'm using à two tmplates pattern;

template A:

{cache-block key=.....}
doing some calcul
fetching nodes
{foreach $nodes as $node}
{node_view_gui content_node=$node view="templateB"}
{/foreach}
{/cache-block}

The pb is ; i don't wont template B to be cached i've tried à {set-block scope=root variable=cache_ttl}0{/set-block} with no big results.

Thanks in advance.

André R.

Tuesday 26 June 2007 6:07:18 am

Move it out of the cache block, this kind of functionality is not currently possible I'm afraid.

It is possible in the template component, and ez publish 4.0.
You can read more on it here:
http://ez.no/doc/components/view/trunk/(file)/introduction_Template.html#caching

ps:
{set-block scope=root variable=cache_ttl}0{/set-block}
is for view-cache, not cache block

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.