vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Template Cache Problem (https://vborg.vbsupport.ru/showthread.php?t=227505)

CCV_Pinto 11-06-2009 04:12 PM

Template Cache Problem
 
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:
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


All times are GMT. The time now is 07:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01711 seconds
  • Memory Usage 1,704KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete