Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Load templates from XCache Details »
Load templates from XCache
Mod Version: 1.0.0 Beta, by Andreas (Coder) Andreas is offline
Developer Last Online: Mar 2019 I like it Show Printable Version Email this Page

vB Version: 4.1.0 Rating: (3 votes - 5.00 average) Installs: 35
Released: 27 Dec 2010 Last Update: 06 Jan 2011 Downloads: 302
Not Supported DB Changes Additional Files Is in Beta Stage  

By default vBulletin loads templates out of the database which means that all templates that are required on a page must be loaded ("cached") before the first template gets rendered.

If a template is not cached an additional dataase query is required.

This Add-on loads templates from XCache on demand, completely emiminating the need for database reads after an initial pageload.

By loading templates on demand only those templates that are really being used on a page will be loaded into memory, so theoretically this Add-on should
  • Decrease memory footprint
  • Decrease page creation time (as loading data from a shared memory storage like XCache is faster than DB access)
  • Remove 1+X (X = amount of uncached templates) queries per page

How is that different to other existing tools like vBOptimise?
Most existing tools (at least the ones I know of) load all templates upfront, just like vBulletin would do if the DB is used.
This means that only those templates that are explicitly cached will be loaded from the cache, uncahed templates will cause additional database queries.

Can I use this Add-on my hared Webhosting?
Most likely not as it requires XCache with variable caching enabled which is usually not the case on shared hosts

I use multiple webservers, is that a problem?
It should work just fine with multiple webservers but that has not been tested so far.

Are there any other drawbacks?
Yes, this Add-on might be (be is not necessarily) incompatible with Add-ons that manipulate the template cache at runtime (which is a technique that is genreally deprecated).

History
1.0.0 Beta 1
First Public Release

1.0.0 Beta 2
  • Fixed incorrect variable initialisation that caused problems with other Add-ons that manipulate the template cache
    Important: Such techniques (like using str_replace(), etc.) are deprecated and it is strongly advised not to use Add-ons that do such auto-template changes.
  • Increased Plug-in execution order to the maximum to ensure all Templates cached via Plug-ins are grabbed

1.0.0 Beta 3
  • Fixed missing global in Hook template_compile
  • Added prefix setting to config.php

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Microstats - load times, server loads, queries, uncached templates ShiningArcanine vBulletin 3.5 Add-ons 406 27 Feb 2011 09:37
Microstats (only for admin) - load times, server loads, queries, uncached templates! Erwin vBulletin 3.0 Full Releases 270 02 Mar 2009 10:16

Comments
  #2  
Old 28 Dec 2010, 02:59
BiZiMDiYaR BiZiMDiYaR is offline
 
Join Date: Aug 2006
Hi,

Has anybody tested this out.. ? As it's beta, I will wait to use on my forum, before I mess it up..

Thanks.
Reply With Quote
  #3  
Old 28 Dec 2010, 05:32
w-elbalad.com's Avatar
w-elbalad.com w-elbalad.com is offline
 
Join Date: Aug 2009
Real name: Mr ~ vAnDa
Great Mod
Thanx
Installed
__________________
Reply With Quote
  #4  
Old 28 Dec 2010, 15:16
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
Originally Posted by BiZiMDiYaR View Post
Hi,

Has anybody tested this out.. ? As it's beta, I will wait to use on my forum, before I mess it up..

Thanks.
If it comes from Andreas no worry to ask.
Reply With Quote
  #5  
Old 28 Dec 2010, 15:55
luan7749's Avatar
luan7749 luan7749 is offline
 
Join Date: Apr 2008
What requirements ?
Reply With Quote
  #6  
Old 28 Dec 2010, 17:34
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Real name: Col
tagged
Reply With Quote
  #7  
Old 28 Dec 2010, 18:17
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Originally Posted by luan7749 View Post
What requirements ?
vBulletin 4.0.0 or higher
PHP 5.0 or higher
XCache 1.2.1 or higher
Reply With Quote
  #8  
Old 28 Dec 2010, 20:21
RustedBucket RustedBucket is offline
 
Join Date: Nov 2004
Real name: James
Buggers... Just tried this on my board, meets all your requirements and then some.. Forumhome loaded fine but nothing else did. Just got white screens. Not sure. I'll try and troubleshoot it later.
Reply With Quote
  #9  
Old 29 Dec 2010, 07:25
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
@RustedBucket
To troubleshoot this it would be useful to get a list of all Add-ons you are using (feel free to send a PM if you do not want to post that publically).
Reply With Quote
  #10  
Old 29 Dec 2010, 21:19
demonfatal demonfatal is offline
 
Join Date: Mar 2009
This can be used with vBOptimise without conflict?
Reply With Quote
  #11  
Old 29 Dec 2010, 21:37
rajubd rajubd is offline
 
Join Date: Jun 2009
Originally Posted by demonfatal View Post
This can be used with vBOptimise without conflict?
i don't know why vBOptimise incresing my server load. when i disable it server running well after apply it it goes high. this mod behave same like vboptimise?
Reply With Quote
  #12  
Old 31 Dec 2010, 14:45
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Please consider to release a vb 3.8 version.
Reply With Quote
  #13  
Old 31 Dec 2010, 16:28
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
No way, 3.8 is outdated
Reply With Quote
  #14  
Old 31 Dec 2010, 16:42
Shamil. Shamil. is offline
 
Join Date: Sep 2008
What's the benefit of this, over loading it from disk?
__________________
Shamil Nunhuck, - Radon Systems Ltd.
VPS + Dedicated Server Hosting and Management
vBulletin Solutions
Server / Website Consultation
Reply With Quote
  #15  
Old 31 Dec 2010, 16:58
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Originally Posted by Andreas View Post
No way, 3.8 is outdated
Haha, maybe true, but vb4 isnt ready yet. Im only using vb4 for smaller sites.
Reply With Quote
Reply


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

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 19:13.

Layout Options | Width: Wide Color: