PDA

View Full Version : Template Cache Problem


CCV_Pinto
11-06-2009, 04:12 PM
hi all,

I have a little problem with a template being cached when I dont want it to cache.

I have added a vertical menu beside the whole forum (like many "left column" mods that we find here)

To achieve this, I did:

1. I added a variable $ccvmenu in the header template.

2. I created a template called "CCV Menu".

3. I created a plugin in parse_templates hook with the code:

eval('$ccvmenu = "' . fetch_template('CCV Menu') . '" ;' );



The menu contains a welcome message like:

Welcome $bbuserinfo[username]

The menu is working fine, I see "Welcome CCV_Pinto" when I enter in my forum, but

when I click "Logout". The menu doesn't refresh immediately! It keeps with the "Welcome CCV_Pinto" message.

I need to refresh the page to refresh the menu and then it appears the right message: "Welcome, unregistered"

so, I want your advice to fix this little problem. I already tried forcing to fetch again the template at "logout_end", but I have probably done something wrong.

I would like to hear your advices, thanks in advance