vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Board Optimization - Plugin Based Template Cache (https://vborg.vbsupport.ru/showthread.php?t=121876)

orban 07-22-2006 10:00 PM

Plugin Based Template Cache
 
Removed on author's request.

orban 07-23-2006 09:29 AM

Old 3.5 thread: https://vborg.vbsupport.ru/showthread.php?t=113002

Snake 07-23-2006 11:43 AM

Thank you, works like a charm! I find this very useful though. :)

marksman1 07-23-2006 06:11 PM

Installed. I did not have a chance to use an old version, but installed and working fine. Thanks for the great mod.

Just a minor nit, but I noticed "seperately" mis-spelled a few times on the configuration screen as "seperatly". Just thought I would let you know.

Anyways again great job. Working with eaccelerator here.

SnickersTK 07-23-2006 08:25 PM

So what difference does this do? Make it use less resources?

marksman1 07-23-2006 11:50 PM

By the way I did run into a small problem with this and VBAdvanced. With VBAdvanced, my navbar links would not work properly on the vba home page. I could just exclude the navbar, but I didn't want to do that, so I just put in full urls for my links in the navbar, and it is all working well.

Snickers, it uses less queries, or query at least, but also serves it up faster, especially if you server has some kind of php cache enabled. Normally the templates are served out of the database.

orban 07-24-2006 10:31 AM

Yes, it saves 1 query on each page and if you have a PHP cache and use the option to save template seperately it saves eval() calls.

Quote:

Originally Posted by marksman1
Just a minor nit, but I noticed "seperately" mis-spelled a few times on the configuration screen as "seperatly". Just thought I would let you know.

Argh! :D Fixed it in the .xml :)

Quote:

Originally Posted by marksman1
By the way I did run into a small problem with this and VBAdvanced. With VBAdvanced, my navbar links would not work properly on the vba home page. I could just exclude the navbar, but I didn't want to do that, so I just put in full urls for my links in the navbar, and it is all working well.

Wow, that's wierd. What vBAdvanced version? So I can download and debug.

ahmed-samara 07-25-2006 05:03 AM

Thank you

rob30UK 07-26-2006 08:02 AM

nice little speed boost here.... very welcome!

Nice hack, cheers.

Mudvayne 07-29-2006 07:44 PM

Got error on RC3..
Quote:

XML Error: Empty document at Line 55

orban 07-29-2006 07:49 PM

When doing what?

Works just fine for me.

Mudvayne 07-29-2006 09:05 PM

Sorry.. My bad.. I enabled overwrite option :( damn me! Now works fine for me :D.. Thnx..

h_kakashi 08-02-2006 02:08 PM

I get the following Error :

Warning: Unknown(template_cache.php): failed to open stream: No such file or directory in /admincp/options.php(1025) : eval()'d code on line 15

Warning: (null)(): Failed opening 'template_cache.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /admincp/options.php(1025) : eval()'d code on line 15

Fatal error: Call to undefined function: clear_template_cache() in /home/kakashi/public_html/forums/admincp/options.php(1025) : eval()'d code on line 16

When I attempt to enable it via vbuleltin options. I attempted to enter in the path to the template folder but no joy.

The forums , templates and files in the templates directory are all set to 777. So I really can't see the problem :S

orban 08-02-2006 02:10 PM

You most likely uploaded template_cache.php to the wrong place.

h_kakashi 08-02-2006 02:22 PM

template_cache.php is in the correct place :)

/public_html/forums/templates/

Mudvayne 08-02-2006 02:49 PM

Nop it shud b in /forums directory :).. Not in /forums/templates directory..

h_kakashi 08-02-2006 02:55 PM

Silly Silly me XD thats what I get for staying up all night :}

orban 08-02-2006 05:42 PM

I even made it bold! Sheesh! :(

SVZ 08-04-2006 12:40 AM

Will this work with vBulletin 3.6 Gold? And also with VBSeo?

SVZ 08-04-2006 12:51 AM

OK, I have it running on vBulletin 3.6 Gold here with VBSeo and it looks fine so far.

http://www.gossiprocks.com/forum/

Anyone want to bug test? I don't really know what I'm doing in that field :(

Mudvayne 08-04-2006 12:52 AM

Quote:

Originally Posted by SVZ
Will this work with vBulletin 3.6 Gold? And also with VBSeo?

I'm not sure since I'm using it with vB 3.6.0 & vBSEO last few hours.. But I can guarantee u that I got no error yet..

SVZ 08-04-2006 12:55 AM

Looks clean from my end so far, been using it for a few minutes lol

orban 08-04-2006 09:10 AM

I don't have vbSEO nor does there seem to be a test version available.

It definitely works with 3.6.0 Gold.

orban 08-04-2006 10:43 AM

Quote:

Originally Posted by SVZ
OK, I have it running on vBulletin 3.6 Gold here with VBSeo and it looks fine so far.

http://www.gossiprocks.com/forum/

Anyone want to bug test? I don't really know what I'm doing in that field :(

If files are created then it should be working.

By the way your website has an awesome header, one of the best I've ever seen! Loving it.

jw00dy 08-17-2006 09:36 AM

I have it installed and it's pretty cool, but I've got to figure out what templates to not cache since some of my hacks now don't work.

Is it the actual names of the templates listed in the plugin manager page?

Nice work BTW, this will be very nice if I don't end up having to exclude all my templates :D

orban 08-17-2006 09:40 AM

No, you need to look in the source codes of the plugins for template names.

SVZ 08-20-2006 02:42 AM

Just like to report a bug, if you use the moderation features (the drop down) and go to delete, and select Physically remove it doesn't work. It prompts you to download inlinemod.php instead of runnning it. i disabled this plugin and it works.

i dont know what template that uses...

nix 08-20-2006 03:20 AM

Doesn't do that on mine. Works just fine.

orban 08-20-2006 08:08 AM

Are you using any products/plugins SVZ that modifies that behaviour?

MissKalunji 08-22-2006 04:26 AM

Quote:

Originally Posted by Icy
I'm not sure since I'm using it with vB 3.6.0 & vBSEO last few hours.. But I can guarantee u that I got no error yet..


i second and third that :)

Mickie D 08-26-2006 07:21 AM

this would be good if we could make a fix for vbshout because i dont think that putting forumhome in the uncached list is a good idea its probably the most important template to cache and probably the largest and most called upon ?

Regards
Mickie D

orban 08-27-2006 01:33 AM

Good point.

Basically all you have to do is replace the line where vBShout modifies the template and manually edit the FORUMHOME template and add a little variable.

I'll have a look later.

Kihon Kata 08-28-2006 01:18 PM

Hi Orban! I updated mine! templates directory building nicely!

orban 08-28-2006 01:23 PM

Glad to hear!

-----

vBShout:

https://vborg.vbsupport.ru/showthrea...hlight=vbshout

I assume you mean this vBShout version.

Edit the plugin "vBShout [Template Alteration]" and comment out this line:

Code:

$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $Shoutbox', $vbulletin->templatecache['FORUMHOME']);
Code:

/*$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $Shoutbox', $vbulletin->templatecache['FORUMHOME']);*/
Then modify the template "FORUMHOME" and add

Code:

$Shoutbox
where you want to have the shoutbox.

This of course disables the placement using the "vBShout Position" option in the admincp.

MissKalunji 08-28-2006 03:05 PM

what about the WELCOME PANEL by inferno?

MissKalunji 08-28-2006 03:06 PM

"The use of the code modification "Vbulletin Plugin Accelerator" is not recommended when using this plugin (and I recommend not using it AT ALL)!
"

Why not? im using it i didnt see anything wrong yet?

orban 08-28-2006 03:12 PM

Quote:

Originally Posted by MissKalunji
"The use of the code modification "Vbulletin Plugin Accelerator" is not recommended when using this plugin (and I recommend not using it AT ALL)!
"

Why not? im using it i didnt see anything wrong yet?

If it works, then good :)

But the problem with that plugin is that if there's a plugin that doesn't work it can make you vBulletin unaccessible.

Quote:

Originally Posted by MissKalunji
what about the WELCOME PANEL by inferno?

Mmmm...try the following:

Edit the plugin "Welcome Panel - Main".

Replace

Code:

$vbulletin->templatecache['FORUMHOME'] = str_replace('$navbar','$navbar ' . $vbulletin->templatecache[forumhome_welcomepanel],$vbulletin->templatecache['FORUMHOME']);
with

Code:

/*$vbulletin->templatecache['FORUMHOME'] = str_replace('$navbar','$navbar ' . $vbulletin->templatecache[forumhome_welcomepanel],$vbulletin->templatecache['FORUMHOME']);*/
$welcomepanel = $vbulletin->templatecache['forumhome_welcomepanel'];

And then edit the template "FORUMHOME" and add "$welcomepanel" after "$navbar".

EDIT: That's for https://vborg.vbsupport.ru/showthrea...=welcome+panel, which one do you use? Couldn't fine one by Inferno.

amcd 08-29-2006 08:04 AM

i have been using this product for few months now on my 3.5.x forum and it works great

a good enhancement to this would be if the templates are compressed before adding to the cache. templates without comments and white space wud be so much smaller and faster.

orban 08-29-2006 10:29 AM

I think if you are using gzip compression it doesn't matter at all, but correct me if I'm wrong.

amcd 08-29-2006 11:19 AM

Quote:

Originally Posted by orban
I think if you are using gzip compression it doesn't matter at all, but correct me if I'm wrong.

it matters less, but it does matter


All times are GMT. The time now is 02:25 PM.

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.02520 seconds
  • Memory Usage 1,817KB
  • 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
  • (5)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete