Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Sep 2012, 14:14
Seductor Seductor is offline
 
Join Date: May 2011
About caching templates.

Hello:

I have read this:
http://www.vbulletin.org/forum/showthread.php?t=228078

And it says:
Among the debug info is a list of all templates called, and non-cached templates will show up in red.
I did what it says and I have added a plugin at hook cache_templates for my BESTUSERS template:


I have tried to look if it is cached:


And well, it is not shown up in red, so I think it is cached. But for my surprise, I have checked another templated which I did not cached previously, GLOSTLSIT, and I found this:


It is not shown up in red too! So, how is it possible? How can it be cached If I did not add any plugin to cache_template telling to do it?

Am I doing something wrong?

Thanks in advance.
Reply With Quote
  #2  
Old 04 Sep 2012, 15:01
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I notice that the "Included Files" list on the right contains gloslist.php, is it possible that something in that file is arranging for it to be cached?
Reply With Quote
  #3  
Old 04 Sep 2012, 15:29
Seductor Seductor is offline
 
Join Date: May 2011
Originally Posted by kh99 View Post
I notice that the "Included Files" list on the right contains gloslist.php, is it possible that something in that file is arranging for it to be cached?
Could it be the pre-cache? I took a template from here:
http://www.vbulletin.org/forum/showthread.php?t=62164
But never cared about the pre-cache. Could it be that?

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array('GLOSLIST',
);

// pre-cache templates used by specific actions
$actiontemplates = array();
Reply With Quote
  #4  
Old 04 Sep 2012, 15:33
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Yes, that's it. Any templates listed there get cached.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 01:08.

Layout Options | Width: Wide Color: