Thread: Board Optimization - Plugin Based Template Cache
View Single Post
  #98  
Old 10-08-2006, 11:54 PM
psico psico is offline
 
Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem! Tnx a lot for your support, here is the list and the codes:


Hook Location : style_fetch

Include template_cache.php --> your plugin

Hook Location : cache_templates


Cache Separate Sticky Template Separate Sticky and Normal Threads


PHP Code:

$globaltemplates  
array_merge($globaltemplates, array('FORUMDISPLAY_Separate'));

$globaltemplates  array_merge($globaltemplates, array('FORUMDISPLAY_Separate2'));
                    
$globaltemplates  array_merge($globaltemplates, array('FORUMDISPLAY_Separate_top')); 

Cache The Templates Show Itrader In Profile


PHP Code:
if (THIS_SCRIPT == "member")
{global 
$globaltemplates;
$globaltemplates array_merge($globaltemplates, array('itrader_profile'));} 
Change headinclude "clientscript" path Rules and User Agreement Hack


PHP Code:
if (THIS_SCRIPT!='portada' && THIS_SCRIPT!='ayuda' && THIS_SCRIPT!='enlazate' && THIS_SCRIPT!='institucional' && THIS_SCRIPT!='reglamento' && THIS_SCRIPT!='terminos-legales' && THIS_SCRIPT!='porque-registrarme') {
$style['css'] = str_replace('clientscript'$vbulletin->options['bburl'] . '/clientscript'$style['css']);

Cyb - Sub-Forums Arranger CT Sub-Forums Arranger

PHP Code:
        if ($vbulletin->options['cybsfa_enable'])
        {
            
$globaltemplates array_merge($globaltemplates, array('cyb_subforum_arranger'));
        } 
downloads_cache_templates DownloadsII

PHP Code:
if (THIS_SCRIPT == 'member')
{
  
$globaltemplates array_merge($globaltemplates, array('downloads_memberfiles''downloads_memberfiles_bit''downloads_memberfiles''downloads_memberinfo_profile'));
}
if (
THIS_SCRIPT == 'showpost' || THIS_SCRIPT == 'showthread' || THIS_SCRIPT == 'private')
{
  
$globaltemplates array_merge($globaltemplates, array('downloads_memberinfo_postbit'));

FlashChat Integration (5) FlashChat Integration

PHP Code:
$globaltemplates[] = 'Flashchat' 
GARS - Startup GARS

PHP Code:
require_once('./geek/gars/includes/gars_ignition.php'); 
Google Talk: [Template Cache] Google Talk IM Icon


PHP Code:
$globaltemplates  array_merge($globaltemplates, array('im_gt','im_send_gt')); 
ibProArcade: ARCADE Template Cache ibProArcade for vBulletin

PHP Code:
if(THIS_SCRIPT == 'index')
{
$globaltemplates array_merge($globaltemplates, array('ARCADE'));

INI: Global Templates Psicofxp.com CMS


PHP Code:
$globaltemplates array_merge($globaltemplates, array( 
  
'CMS_ads_468x60_header',
  
'CMS_lateral_derecho',
  
'CMS_portada_afiliados',
  
'CMS_portada_anuncios',

));

if (
THIS_SCRIPT=="portada")
{
  
$globaltemplates array_merge($globaltemplates, array(
  
'CMS_ads_468x60',
  
'CMS_portada_videoteca',
  
'CMS_portada_galeria',
  
'CMS_portada_arcade',
  
'CMS_portada_arcade_bit',
  
'CMS_portada_descargas',
  
'CMS_portada_descargas_bit',
  
'CMS_portada_websemana',
  
'CMS_portada_buscador',
  
'CMS_forumtags',
  ));

}
else
{
  
$globaltemplates array_merge($globaltemplates, array(
  
'CMS_ads_728x90_sup',
  
'CMS_buscador',
  
'CMS_ads_lateral_derecho1',
  
'CMS_hoyenportada',
  
'CMS_hoyenportada_articulo',
  
'CMS_maspsicofxp',
  
'CMS_maspsicofxp_descargas',
  
'CMS_portada_descargas_bit',
  
'CMS_maspsicofxp_arcade',
  
'CMS_portada_arcade_bit',
  
'CMS_maspsicofxp_galeria',
  
'CMS_maspsicofxp_noticias',
  
'CMS_maspsicofxp_noticias_bit',
  
'CMS_zonas',
  ));

Members in Flashchat (1) Members who are using flashchat

PHP Code:
if ($vbulletin->options['wic'])
{
    
$groups explode(',',$vbulletin->options['wicgrps']); 
    if (
is_member_of($vbulletin->userinfo,$groups) OR $groups[0] == 0
    {
        
$show['wic'] = true;
        
$globaltemplates[] = 'Display_Chatters' ;
    }
    else 
    {
        
$show['wic']= false;
    }
}
else
{
    
$show['wic']= false;

Members who have visited (1) Members who have visited the forum


PHP Code:
if ($vbulletin->options['wvt'])
{
    
$groups explode(',',$vbulletin->options['wvtgrps']); 
    if (
is_member_of($vbulletin->userinfo,$groups) OR $groups[0] == 0
    {
        
$show['wvt'] = true;
        
$globaltemplates[] = 'Display_Visitors' ;
    }
    else 
    {
        
$show['wvt']= false;
    }
}
else
{
    
$show['wvt']= false;

Mini Navbar: Cache template Mini Navbar

PHP Code:
$globaltemplates[] = 'navbar_mini'
Rules And User Agreement Rules and User Agreement Hack

PHP Code:
if ($show['member']) {
$globaltemplates array_merge($globaltemplates, array('ruleshack_rules',    'ruleshack_rulesbit'));

Template Cache Plugin Based Template Cache

PHP Code:
if ($vbulletin->options['pbtc_enable'])
{
cache_templates_with_file_cache($globaltemplates$style['templatelist']);
$globaltemplates = array();

vBSEO Cache Templates vBSEO

PHP Code:
if(@include_once('includes/functions_vbseo.php'))
vbseo_complete_sec('cache_templates'); 
Welcome Headers [Template Cache] Welcome Headers

PHP Code:
$globaltemplates[] = 'welcome_headers'
YAAS - cache templates Yet Another Award System 3.5


PHP Code:
if ((THIS_SCRIPT == 'showpost') OR (THIS_SCRIPT == 'private') OR (THIS_SCRIPT == 'announcement') OR (THIS_SCRIPT == 'memberlist') OR (THIS_SCRIPT == 'showthread'))
{
    
$globaltemplates array_merge($globaltemplates, array('awards_bit'));
}

if (
THIS_SCRIPT == 'member')
{
    
$globaltemplates array_merge($globaltemplates, array('awards_bit','awards_userawards_bit','awards_showcase'));

Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01253 seconds
  • Memory Usage 1,876KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (18)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete