![]() |
Plugin Based Template Cache
Removed on author's request.
|
Old 3.5 thread: https://vborg.vbsupport.ru/showthread.php?t=113002
|
Thank you, works like a charm! I find this very useful though. :)
|
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. |
So what difference does this do? Make it use less resources?
|
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. |
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:
Quote:
|
Thank you
|
nice little speed boost here.... very welcome!
Nice hack, cheers. |
Got error on RC3..
Quote:
|
When doing what?
Works just fine for me. |
Sorry.. My bad.. I enabled overwrite option :( damn me! Now works fine for me :D.. Thnx..
|
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 |
You most likely uploaded template_cache.php to the wrong place.
|
template_cache.php is in the correct place :)
/public_html/forums/templates/ |
Nop it shud b in /forums directory :).. Not in /forums/templates directory..
|
Silly Silly me XD thats what I get for staying up all night :}
|
I even made it bold! Sheesh! :(
|
Will this work with vBulletin 3.6 Gold? And also with VBSeo?
|
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 :( |
Quote:
|
Looks clean from my end so far, been using it for a few minutes lol
|
I don't have vbSEO nor does there seem to be a test version available.
It definitely works with 3.6.0 Gold. |
Quote:
By the way your website has an awesome header, one of the best I've ever seen! Loving it. |
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 |
No, you need to look in the source codes of the plugins for template names.
|
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... |
Doesn't do that on mine. Works just fine.
|
Are you using any products/plugins SVZ that modifies that behaviour?
|
Quote:
i second and third that :) |
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 |
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. |
Hi Orban! I updated mine! templates directory building nicely!
|
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']);*/ Code:
$Shoutbox This of course disables the placement using the "vBShout Position" option in the admincp. |
what about the WELCOME PANEL by inferno?
|
"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? |
Quote:
But the problem with that plugin is that if there's a plugin that doesn't work it can make you vBulletin unaccessible. Quote:
Edit the plugin "Welcome Panel - Main". Replace Code:
$vbulletin->templatecache['FORUMHOME'] = str_replace('$navbar','$navbar ' . $vbulletin->templatecache[forumhome_welcomepanel],$vbulletin->templatecache['FORUMHOME']); Code:
/*$vbulletin->templatecache['FORUMHOME'] = str_replace('$navbar','$navbar ' . $vbulletin->templatecache[forumhome_welcomepanel],$vbulletin->templatecache['FORUMHOME']);*/ EDIT: That's for https://vborg.vbsupport.ru/showthrea...=welcome+panel, which one do you use? Couldn't fine one by Inferno. |
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. |
I think if you are using gzip compression it doesn't matter at all, but correct me if I'm wrong.
|
Quote:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|