Share » Forums » Developer » CacheBlock problem

CacheBlock problem

CacheBlock problem

Monday 06 August 2007 6:53:44 am - 3 replies

Author Message

André R.

Monday 06 August 2007 9:10:16 am

Could you show how $i is defined ?

Btw there are some bugs in the code:
1. ezhttp produce error if the variable you are getting is unset.
2. I hope this is only example code, since that cache block is a wast of resources
(there is no point in caching two if's)

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

Xavier Dutoit

Monday 06 August 2007 9:14:20 am

Is it a template for a view (full...) ? in that case, you have to disable the cache for this template (set ttl = 0 ) otherwise the node is cached, and it doesn't take into account the cache-block in the template.

X+

http://www.sydesy.com

Julien Plesniak

Monday 06 August 2007 11:39:17 pm

Hello, i add before my cache block

{set-block scope=root variable=cache_ttl}0{/set-block}

and it work perfectly. Thanks :)

Ps: Yes André, it is an example, reduced to be read on the forum ;)

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu