(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.
// vB_Datastore_Filecache - for using a cache file
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';
$config['Datastore']['class'] = 'vB_Datastore_XCache';
// vB_Datastore_Memcached - for using a Memcache server
// It is also necessary to specify the hostname or IP address and the port the server is listening on
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 )
the php cache part and the size of var cache looks good. but var cache is not caching anything in your case. did u request the vBulletin first to let it cache something in?
phpxcache sorry m8 but i uninstalled it cause with it vbgooglemaphse & vbgooglemapme stopped working... they produced a white page without errors or anything..
phpxcache sorry m8 but i uninstalled it cause with it vbgooglemaphse & vbgooglemapme stopped working... they produced a white page without errors or anything..
I stay with xcache for template caching
dont get ur word..that means after install this data store cache modification u faced mentioned error?
i would like to request u to provide as much as info possible for u to provide phpxcache for proper diagonisis & soltion...
or if u face error with Xcache drop ur issue http://trac.lighttpd.net/xcache/newticket .Soon..very soon u will get the reply..
Quote:
Originally Posted by IrPr
I'm currently using APC on my major vB forum do u suggest me to switch to XCache ?
like wise i was on eAcc and then i moved to Xcache & suggest every one to switch to Xcache.
Do u know why? Coz,this is really too kool it works gr8 with less memory consumption even it makes my forum more faster than before.
and the main reason is that the author is very much agger to digg any bug & solve it ASAP.
wich i didnt get in eAcc or APC.