Friday 02 November 2007 10:14:05 am
{set-block scope=global variable=cache_ttl}0{/set-block}
Is for view cache ( aka content view cache, as in cache for the content/view module view), so has no effect on cache blocks. As for setting expiry=0, this is what happens(from the doc):
A value of zero will produce a cache block that will never expire.
the reason it doesn't work is that the keys parameter only supports 1 level deep arrays. It will not understand the $node or $view_parameters objects! You can use $module_result.uri ( url + view params + view param values) if this is in a pagelayout:
{cache-block keys=$module_result.uri}
...
[template code]
...
{/cache-block}
You need to know what params are going to be used if this is in a node template:
{def $user_id = first_set($view_parameters.id, '')}
{cache-block keys=array($node.node_id, $user_id, $view_parameters.offset)}
...
[template code]
...
{/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
|