Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
XCache for vBulletin Caching Details »
XCache for vBulletin Caching
Mod Version: 0.9.1, by rossco_2005 (Member) rossco_2005 is offline
Developer Last Online: May 2013 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (6 votes - 4.67 average) Installs: 34
Released: 30 Jan 2012 Last Update: 26 May 2013 Downloads: 272
Not Supported Code Changes Additional Files Is in Beta Stage  

This mod will replace the default vB_Cache_Db class (database cache) used in vBulletin with an xCache implementation of it.
vBulletin has promised to implement this option themselves, but I'm sick of waiting, so I created this.

What are the benefits of using XCache for caching over MySQL (Database) ?

In theory, quicker page load times, lower server load. This will offload the duty of caching from mysql and throw it into the RAM.
It will also reduce your query count per page.

The most staggering difference you will notice is with the CMS, or any mods that make good use of the cache.
For instance, in my dev site using the default CMS content and settings, browsing as a guest, I was able to shave off an average of 0.06 seconds from the page generation time (0.23 -> 0.17 seconds) and 43 queries (86 -> 43)!
In a live site, the reduction in queries and overall time spent serving the page will have a large effect on overall performance in a busy site.

Make sure that you also have the datastore cache method set to xcache as well for further query reduction: https://www.vbulletin.com/docs/html/datastore
Also install "Load templates from XCache" for further query reduction: http://www.vbulletin.org/forum/showthread.php?t=255994

Any drawbacks?

Other than a file edit required on every vBulletin upgrade, none that I can think of... If you think of one, post it.

What about other data caches ? (memcached, apc, etc.)

I could write those as well, if there is a demand for it, and they happen to work similar enough to xcache.

This is a beta!

This has been tested in a live forum for a few days, and no incidents/side-effects have been noticed or reported, but I cannot yet guarantee it is 100% perfect.

This mod requires one file edit

See this bug to find out why: http://tracker.vbulletin.com/browse/VBIV-13241

Requirements

This was designed to fail gracefully by falling back on the DB cache if there is an error, so if there is an error you will not even realize it.

Make sure these requirements are met:
  • XCache 1.3.2 installed (only version that I tested) (verify by viewing phpinfo page)
The following are in your XCache ini settings (php.ini usually):
  • xcache.var_size = 32M (32MB; at least)
  • xcache.var_slots = 8k (8000; at least)
  • Set xcache.admin.user and xcache.admin.pass to whatever you want (keep in mind that the pass must be MD5'd)

Restart after making any changes.

Another tip is to set your xcache.count and xcache.var_count to the number of CPU cores that you have.

See the documentation here: http://xcache.lighttpd.net/wiki/XcacheIni

After running this mod for a while, check your xcache admin page to ensure that your var_slots and var_size are large enough.

Install Instructions

1. Upload the contents of the UPLOAD folder in xcache.zip to your forum root

2. Open up your /includes/config.php file and add the following:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Edit it to include your xcache admin username and password

3. This step will need to be repeated whenever you do a forum upgrade.
Open up /vb/cache.php.
Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Board Optimization datastore cache to XCache - boost your vBulletin phpxcache vBulletin 3.6 Add-ons 243 09 Jan 2010 20:36

Comments
  #2  
Old 31 Jan 2012, 00:01
FReeSTER FReeSTER is offline
 
Join Date: Jun 2006
First post. lol Great!!!!!!!!!!!!!!!!11 love Mods like this one. Will try and let you know
Reply With Quote
  #3  
Old 31 Jan 2012, 00:10
rossco_2005's Avatar
rossco_2005 rossco_2005 is offline
 
Join Date: Apr 2005
Originally Posted by FReeSTER View Post
First post. lol Great!!!!!!!!!!!!!!!!11 love Mods like this one. Will try and let you know
Thanks, I look forward to hearing the results.
__________________
Reply With Quote
  #4  
Old 31 Jan 2012, 00:25
v123shine v123shine is offline
 
Join Date: Sep 2008
Great mods...love it!
__________________
filmbor.com
bikinwebsite.com
Reply With Quote
  #5  
Old 31 Jan 2012, 00:43
steviewonder44 steviewonder44 is offline
 
Join Date: Apr 2011
Thanks a bunch
Reply With Quote
  #6  
Old 31 Jan 2012, 01:04
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Real name: Adam H.
I'd be interested apc .... Should there be a demand other than myself of course.

Good work on this
Reply With Quote
  #7  
Old 31 Jan 2012, 01:07
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
What's the possibility of using this on a 3.8?
Reply With Quote
  #8  
Old 31 Jan 2012, 01:12
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
No need, vBulletin 3.8 doesn't have a cache table at all. It also already has datastore cacheing for xcache.
__________________
Looking for ImpEx?
Reply With Quote
  #9  
Old 31 Jan 2012, 01:14
rossco_2005's Avatar
rossco_2005 rossco_2005 is offline
 
Join Date: Apr 2005
Originally Posted by Max Taxable View Post
What's the possibility of using this on a 3.8?
It will never work, the cache was added in 4.0, and even now it's only really used for the CMS and maybe a few odds and ends in the forums.
__________________
Reply With Quote
  #10  
Old 31 Jan 2012, 01:51
CoZmicShReddeR's Avatar
CoZmicShReddeR CoZmicShReddeR is offline
 
Join Date: Oct 2006
Real name: Martin Weltchek
Installed not sure if there was too much of an improvement on my site...
__________________
Reply With Quote
  #11  
Old 31 Jan 2012, 04:54
thecore762 thecore762 is offline
 
Join Date: Jul 2008
What's the difference between this mod and vBOptimise?
__________________
www.47r-squad.com BF3|CS:S|TF2|L4D2 Gaming community
Reply With Quote
  #12  
Old 31 Jan 2012, 09:38
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
it seems you put lot of effort in this
but I do not know why but I am only convinced by server Header cache and mod expires instead
Reply With Quote
  #13  
Old 31 Jan 2012, 10:12
Robru's Avatar
Robru Robru is offline
 
Join Date: Aug 2005
Thanks for sharing this!
Reply With Quote
  #14  
Old 31 Jan 2012, 10:20
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
you also need to ensure that your webhost supports xcache

mine does so for me this mod is useless, only install if your host supports it
__________________
http://www.multihunters.co.uk - all your coding needs

Last edited by TheSupportForum; 31 Jan 2012 at 12:48.
Reply With Quote
  #15  
Old 31 Jan 2012, 10:51
sticky sticky is offline
 
Join Date: Sep 2003
Who is using this and what are the results?

Any compatibility issues with mods or is this seamless?
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 00:04.

Layout Options | Width: Wide Color: