Forums / Setup & design / syntax for subtree_expiry in cache block
Marko Žmak
Monday 25 September 2006 5:35:54 am
The documentations says that cache-block should be used like this:
{cache-block subtree_expiry='products/'}
that is, with the trailing "/". I wonder if cache-block will work without the trailing "/". Can anyone answer this?
I personally don't see any reason why "/" should be obligatory in the end. And also it complicates things when you want to use something like this:
$node.url_alias
for subtree_expiry parameter, since $ndoe.url_alias doesn't have the trailing "/".
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth
Xavier Dutoit
Monday 25 September 2006 6:08:01 am
Or, for that matter, having and id instead of a path.
Have you tried with node.node_alias ? Does it work ?
X+
http://www.sydesy.com
Nabil Alimi
Tuesday 26 September 2006 8:02:07 am
Actually, it works without the last trailing slash.
My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com eZ Publish Freelance developper. Feel free to contact me +33 674 367 057 nabil at assiki d0t fr
Friday 06 October 2006 8:40:45 am
Sorry for the late answer. Yes, subtree_expiry does work wihouth the trailing slash.
But it would be also nice to have the possibility of using it with node_id. Would such usage speed up or slow down the template cache system?