Forums / Developer / how is this possible? (for lack of a better description)

how is this possible? (for lack of a better description)

Author Message

Rinze Cats

Tuesday 15 June 2004 3:19:06 am

I use the following code to prevent certain parts of my site from caching, depending on the section or the uri.tail.

the code works.

{section show=or($DesignKeys:used.section|eq(31),$DesignKeys:used.section|eq(23),$site.uri.tail|eq('content/search'),$site.uri.tail|eq('content/advancedsearch'),$site.uri.tail|eq('user/register'),$site.uri.tail|eq('user/login'))}
 no-caching allowed<br><br>
{include uri="design:content_template_flow.tpl"}
{section-else}
{cache-block keys=$uri_string}
{include uri="design:content_template_flow.tpl"}
{/cache-block}
{/section}

However, when I print the following code first, the code doesn't work anymore. I simply use the code below during development to understand the values I am comparing against . How can this influence the logic?. Can anybody confirm this? Adding the code below causes the above displayed section to behave differently. Btw, I have tested it with and without the code after deleting the entire cache dir.

designkeys <br />{$DesignKeys:used|attribute(show,5)}
site <br />{$site|attribute(show)}

kind regard,
rinze

Alex Jones

Tuesday 15 June 2004 6:12:40 am

I would report that as a bug as that behaviour doesn't make any sense.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>