Wednesday 13 September 2006 8:02:44 am
Hi, It might or might not be related to the mysterious edit button that is displays on the wrong posts in ez forum. http://ez.no/community/forum/general/do_you_see_the_edit_button I have a page layout with two differents part (say middle and left column) that are dynamic (ie differs from node to node). in the pagelayout, I've got something like that :
main part
{$module_result.content}
<hr/>
other part
{cache-block keys=array($uri_string,$current_user.login)}
{section show=is_set($#extra)}
{$#extra}
{section-else}
generic part
{/section}
{/cache-block}
Then in the overrided full.tpl :
Bla bla in the main part
{set-block variable="extra" scope="global"}
bla bla in the other part
{/set-block}
The idea is that each template can set a different other part #extra for each user. Unfortunately, it doesn't always work. If you change from one user to another and display the same page, it sometimes doesn't display the other part. Then, if you clear all the caches, it displays the correct one again, but other users might get the wrong other part, on that node or another. It has different reactions if the template is complied or isn't, both with problem. It is very hard to reproduce, even by using several computers.
The only idea I have is that sometimes, the cache system decides that either the $module_result.content or the extra block is already calculated and in cache and doesn't keep the two parts in sync. Do you have any idea ? I'm seriously in the dark and that drives me nuts. Am I wrong assuming that module.content is calculated once for every user ? In other word, that it won't use a cache of a content generated for a user won't be used for another one ? X+
http://www.sydesy.com
|