The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
datastore cache to XCache - boost your vBulletin Details »» | |||||||||||||||||||||||||||
datastore cache to XCache - boost your vBulletin
Developer Last Online: Mar 2008
(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. Pre-requirement
Install the modification for those of you who can't run "patch", u may patch the file manually
example class_datastore.php after modification: PHP Code:
PHP Code:
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 ) Supporters / CoAuthors Show Your Support
|
Comments |
#152
|
|||
|
|||
Can you give me alittle guide. I did the same thing as instruction but get error:
XCache variable data cache is not enabled, please set xcache.var_size in php.ini..... my xcache.ini Quote:
|
#153
|
|||
|
|||
xcache.ini ??
If it is installed correctly, those fields should be found in your php.ini file. /etc/php.ini Hence, what the error message is telling you to look into. Not sure what else is going on with your setup unless you can give some more information. I've got xcache and this mod running on two dedicated servers now. |
#154
|
|||
|
|||
well, some how for my setup php4.4.7 when i include
those config to the php.ini it does not work. httpd wont start. The i make an xcache.ini in the extension_dir with all the config info. Xcache works. But it does not work with Var-cache |
#155
|
||||
|
||||
lauxanh ..
there s/b something wrong at ur installation.. |
#156
|
|||
|
|||
I have no i dea why.
I tried to move those config to php.ini but when ever i put it in then add: $config['Datastore']['class'] = 'vB_Datastore_XCache'; to config.php restart webserver. I see blank page see attachment |
#157
|
||||
|
||||
never had any problem around it..using it from the day it released....
|
#158
|
|||
|
|||
i have this issue
Code:
Fatal error: Class vb_datastore_xcache: Cannot inherit from undefined class vb_datastore in /home/****/public_html/includes/class_datastore_xcache.php on line 14 |
#159
|
|||
|
|||
Does this mod work when you have more than one VB installation on a server? I've got two installs but the variables are clashing with each other if i enable the mod on both vb installs at the same time..
|
#160
|
||||
|
||||
Yep, I think that two installations may possibly clash.
|
#161
|
|||
|
|||
Quote:
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|