Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Plugin Based Template Cache Details »»
Plugin Based Template Cache
Version: 1.0.3, by orban orban is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.0 Rating:
Released: 07-22-2006 Last Update: Never Installs: 153
Uses Plugins
Additional Files  
No support by the author.

Removed on author's request.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 10-07-2006, 12:24 PM
psico psico is offline
 
Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did it and the same problem appears...

I?m running 3.6.1, I cannot give you acces to the server or Admincp, sorry about that.

This is the list of plugins:

Quote:
Auto-PM Staff on User Ban 1.0 This will automaticly send a PM to all Administrators and Moderators when a member is banned

Digital Point Co-Op Ad Network 1.0 Allows you to run ads for the Digital Point <a href="http://www.digitalpoint.com/tools/ad-network/" target="_blank">Co-Op Ad Network</a>

DownloadsII 5.0.2 A Download Database for vB

FlashChat Integration 3.07 Integration of Flashchat and vBulletin 3.6

GARS 2.0.0 RC 4 Geek Article and Review System

Google Talk IM Icon 1.0 Adds the IM icons.

ibProArcade for vBulletin 2.5.6 ibProArcade - professional Arcade System for vBulletin

Infraction Moderation 0.9 Only allows moderators to give infractions in forums they have moderation privlages to.

iTrader 2.0.1 Trader Feedback System

Members who are using flashchat 4.32 Display members who are currently chatting in Flashchat.

Members who have visited the forum 4.31 Display members who have visited the forum.

Mini Navbar 1.0.4 Places a breadcrumb from the navbar on the bottom of a thread

Moderation Auto-PM 2.0.1 Automaticly PMs a user when their thread is moderated

Plugin Based Template Cache 1.0.3 Plugin based Template-to-File cache without file modification

Prevent Doubleposts 1.0 Beta 4 This Modification prevents doubleposts by merging post together, if the last poster of a thread tries to post again.

Rules and User Agreement Hack 1.1.5 Agreement Rules Systems

Separate Sticky and Normal Threads 1.0.5 Separate Sticky and Normal Threads

Show Itrader In Profile 1.00 This product allows you to show a user's itrader info in his/her profile.

Spam Decimator 1.0.5 Spam Killing Extension

Sub-Forums Arranger 1.7 Cyb - Sub-Forums Arranger

Thread Prefixes 1.6.1 This product allows your users to choose a thread prefix for each thread which will be displayed in front of the thread title.

Usergroup Allow HTML 3.5.0 Specify usergroups whose HTML posts will be parsed

vBSEO 3.0.0 RC6 vBulletin SEO

vBSEO :: Sitemap Generator 1.7 Generate a Google & Yahoo Sitemap for your Forums

Welcome Headers 4.1.1 Boost registration and activity rates with more visible guest welcome and member status messages.

Yet Another Award System 3.5 2.1.2 https://vborg.vbsupport.ru/showthread.php?t=94836

[APM] Advanced Product Management 3.0.0 A powerful tool to manage product. All (codes/plugins/templates/phrases/settings) in one!
Reply With Quote
  #93  
Old 10-07-2006, 12:27 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are there still empty files being created?
Reply With Quote
  #94  
Old 10-07-2006, 12:35 PM
psico psico is offline
 
Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

YES.

Forget abot VBSEO, other people are using it and don?t have any problems at all, vbseo is just another plugin, very simple.

Read this:http://www.vbseo.com/f77/vbseo-plugi...467/#post51174

This is one of the developers of VBSEO.
Reply With Quote
  #95  
Old 10-07-2006, 12:42 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try to change the Execution Order to 99 for the plugin "Template Cache".
Reply With Quote
  #96  
Old 10-07-2006, 12:56 PM
psico psico is offline
 
Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Done.

The error continues: Warning: Invalid argument supplied for foreach() in /template_cache.php on line 32

Some part of the site is working, but the threads and forumhome it's all blank with the error above.

The template directory continues with too many files with 0 bytes.
Reply With Quote
  #97  
Old 10-08-2006, 03:10 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I didn't get email notification.

Can you list me all plugins from the following hooks:

"style_fetch" and "cache_templates"? The full plugins, with code. If possible here, if not in a PM works too.
Reply With Quote
  #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
  #99  
Old 10-09-2006, 12:03 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As you can see, half of them modify $globaltemplates, because of this it is crucial that my plugin gets executed last (because it uses that variable to build the cache).

What is the highest "Execution Order" you got from these? And you tried setting mine higher than all others?
Reply With Quote
  #100  
Old 10-09-2006, 01:11 AM
psico psico is offline
 
Join Date: Oct 2001
Location: Buenos Aires, Argentina
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by orban
As you can see, half of them modify $globaltemplates, because of this it is crucial that my plugin gets executed last (because it uses that variable to build the cache).

What is the highest "Execution Order" you got from these? And you tried setting mine higher than all others?
The execution order for ALL the plugins is 5, except for your plugin that have 99.
Reply With Quote
  #101  
Old 10-09-2006, 01:22 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know. It works for 100 other people even with vBSEO. It must be something with your installation. All those plugins you listed just modify the variable, there is no reason this will break anything.

I had a look at http://www.psicofxp.com/ and that site is heavily customized.

If you want me to have a look I need some sort of access.

You can also wrap the plugin in a userid test (so it only is enable for yourself) and print_r on all variables to find out what's going wrong. This requires PHP knowledge tho, but that's what I'd do.

1.

Change the "Template Cache" plugin to:

Code:
if ($vbulletin->userinfo['userid'] == 1)
if ($vbulletin->options['pbtc_enable'])
{
cache_templates_with_file_cache($globaltemplates, $style['templatelist']);
$globaltemplates = array();
}}
Upload the attached file instead of the one you can download up here.

Go to your forum home, and a lot of text will appear on top of the page (and probably errors, too). Post me the whole output (please view the source code and past it in [code]).

Also, are the 6578sdas7687sd86asd.php files empty or the 2132.php ones?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 04:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05325 seconds
  • Memory Usage 2,379KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (18)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete