Register Members List Search Today's Posts Mark Forums Read

Mod Options
datastore cache to XCache - boost your vBulletin Details »
datastore cache to XCache - boost your vBulletin
Mod Version: 0.8.5, by phpxcache (Member) phpxcache is offline
Developer Last Online: Mar 2008 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.5 Rating: (14 votes - 4.57 average) Installs: 141
Released: 03 Mar 2007 Last Update: 04 Mar 2007 Downloads: 977
Not Supported Code Changes Additional Files  

(note: do not apply this patch on vBulletin 3.7 as it's included already)
This patch allow you to use XCache as a datastore cache in vBulletin. This is definitely your choice if you have installed and enabled XCache on you server already.

Take care that this is a beta version and was not heavily tested. And i'm not familiar with vBulletin source code as i just started reading it today, but i don't have any difficulty reading it thanks to my years of php skill

Take aware that some vB plugin is not compatible with vB_datastore_*, not just vB_datastore_XCache. So, in case you find vB_datastore_XCache won't work, you'd better try datastore to file or memcache. If one of the others works but not vB_datastore_XCache, do report it to me so i can fix it.

Install the modification
for those of you who can't run "patch", u may patch the file manually
  • download Attachment 61372 (class_datastore_xcache.php)
  • save the file as vBulletin.3.6/upload/includes/class_datastore_xcache.php
  • open vBulletin.3.6/upload/includes/class_datastore.php in your favor editor
  • add a line in class_datastore.php (see below)
  • update upload/includes/config.php to enable it (see below)

example class_datastore.php after modification:

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

example config.php after modification:

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

Trouble Shooting
q. i have multiple vBulletin instance installed, the seems to mix data after install this plugin
a. this applies to apc too because, if you wanna fix it, try
open class_core.php, look for:
$this->prefix =& $this->registry->config['Datastore']['prefix'];
and modify to:
$this->prefix = $this->registry->config['Datastore']['prefix'] . $_SERVER['SERVER_NAME']; // or HTTP_HOST

q. Warning: unserialize() expects parameter 1 to be string, array given in $a.php on line $b
a. upgrade your plugin/hack that $a.php belongs to, e.g. vbjournal/vbgallery etc. OR open $a.php and locate at line $b, remove unserialize call, e.g.:
replace $var = unserialize($this->data);
with $var = $this->data;
be careful do not remove the whole line, just the unseralize( and )

Download Now

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

Supporters / CoAuthors


Click image for larger version

Name:	vB-xcache-var-cache.png
Views:	3345
Size:	21.8 KB
ID:	61314  

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.
Old 01 Sep 2008, 13:32
Icy Icy is offline
Join Date: Nov 2007
Real name: Icy
Originally Posted by thompson View Post
and it works ? forums are really faster ?
I think so. Actually I'm using it since it's been released here. So it's kind of hard to say that forums are really faster or not. But the caching works flawlessly.
Reply With Quote
Old 16 Sep 2008, 09:18
Zia's Avatar
Zia Zia is offline
Join Date: Dec 2005
Real name: Z.R.
Originally Posted by Fenriz View Post
hydn, is it possible for xcache and memcached to co-exist? If I have xcache installed as an oppcache, how should I install memcached?
No U dont need memcache at all.. Xcache will do everything for u and it works better (most of the review says it all)
Reply With Quote
Old 17 Sep 2008, 05:55
asasi asasi is offline
Join Date: Apr 2003
I followed installation path but some pages on my forum will open just showthread.php has problem. when I try to open a threat I have 500 internal server error !
This is my php.ini file in forum folder:

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

thanks in advance
Reply With Quote
Old 09 Jan 2010, 20:36
GTX2 GTX2 is offline
Join Date: Jun 2006
I've tried everything and after three days trying to install xcache, everything is ok now when checking phpinfo, but when browsing forums i get always this error:

xcache.var_size is either 0 or too small to enable var data caching
in phpinfo i have xcache.var_size = 64MB
but in php.ini i have xcache.var_size = 4MB

How to solve this ?

PS- sorry replying such old thread
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 02:19.

Layout Options | Width: Wide Color: