Wednesday 29 October 2003 8:35:35 am
Hi I am developing an site where users should be allowed to log in and out. However, it seems that an cache-block function is destroying everything. This cache-block function seems to be documented in 3 lines, as such it is difficult to understand it. My main question is what does excatly an cache key do? In my design I have an template which display the menu and a user panel (if anonymous user then a login and a register link, else logout and a edit(username) link). However, if I log in and out the user panel is not updated! I.e. an anonymous user has an link to edit(administrator user), the link is not working, but it should not be showing either. I thought this cache-block should make the cache work:
{cache-block keys=array($current_user.contentobject.id,'left_menu',$uri_string)}
{include uri="design:left_menu.tpl"} {/cache-block} I am trying to state that each $current_user must have their own content cached . Hope someone have some tips on this Tore
|