Register Members List Search Today's Posts Mark Forums Read

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).

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 10:37
Microstats (only for admin) - load times, server loads, queries, uncached templates! Erwin vBulletin 3.0 Full Releases 270 02 Mar 2009 11:16

Old 24 Jan 2012, 08:56
prandah's Avatar
prandah prandah is offline
Join Date: Jun 2010
disable it first
waiting update from author
my personal blog
Reply With Quote
Old 23 Apr 2013, 06:05
dreamygirl dreamygirl is offline
Join Date: Jan 2007
I am interested in an update for this, or for someone else to make a similar mod.
Reply With Quote
Old 27 May 2013, 18:38
bzcomputers's Avatar
bzcomputers bzcomputers is offline
Join Date: Apr 2012
Originally Posted by dreamygirl View Post
I am interested in an update for this, or for someone else to make a similar mod.
Unfortunately the chance for an update is about zero. Andreas appears to no longer be supporting any of his mods here. He has not updated any of them in over a year.

Does anyone have this working on vb 4.2.x?
Reply With Quote

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 09:35.

Layout Options | Width: Wide Color: