Forums / Setup & design / Random and cache... / Comment24740
Marco Zinn
Tuesday 03 July 2007 9:39:36 am
Hi,
please check these things:
1. Your foreach loop overlaps the cache-block boundaries. Please move the end of the foreach to withing the cache-block 2. {set-block scope=root variable=cache_ttl}0{/set-block} will set the Time To Live of the Content Cache for this node to 0, disabeling the cache. This should be the right way to do this. I had to use "scope=global" once to get it working, but i think, i had used an include file then.3. {cache-block expiry=0} Means, that you define a cache-block around your output, which will last forever (99% sure, please check the docs on "cache-block"). You should remove this cache-block or set the expiry time to something usefull. Default is "2 hours", i think, maybe try expiry=30 , which means 30 seconds.
For testing, i'd recommend to remove the cache-block statements.
EDIT: :) I was on the phone, while i wrote this comment. I didn't want to duplicate André's entry, they just "overlapped in time" ;)
Marco http://www.hyperroad-design.com