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 |
#12
|
|||
|
|||
edit file includes/class_datastore.php
at th end (above ?>) add nether php code PHP Code:
add or edit $config['Datastore']['class'] = 'vB_Datastore_XCache'; precondition: you must install xcache,and set xcache.var_size not 0,same as xcache.size in php.ini |
#13
|
||||
|
||||
|
#14
|
|||
|
|||
I assume we put the "vB_Datastore_XCache" File in the includes/datastore directory?
|
#15
|
|||
|
|||
My server OS window 2003 . .Apache v2.0.59 , PHP 4.4.5
Can i use it . sorry for my bad english |
#16
|
||||
|
||||
Quote:
More info on this woul be good. I just tried to install this and got errors. I didn;t change the var size from 0, plus I assumed the location of the attached php file. Please can more details be added to this hack as I would like to use it. Thanks. |
#17
|
|||
|
|||
i have updated the topic again.
setting "xcache.var_size not 0" is same as "xcache.size" xcache.var_size = 10M or so is fine, just resize it for to fit your needs. you gotta copy the content of the whole php file i attached into class_datastore.php, there's no new file is created or added |
#18
|
||||
|
||||
Quote:
to use this(this thread) mods..u must have Xcache install in ur box Quote:
(The Author phpxcache can explain u better) After u got xcache installed on ur Box..U can use this mods for datastore cache. |
#19
|
||||
|
||||
Quote:
See bellow xcache.ini of our box Quote:
xcache.size & xcache.var_size both set to 64Mb . And ur using 100 Mb for xcache.size . did u really need that much memory ? we set 64MB.33Mb used and still 31MB is free out of 64Mb. when vbplaza on it just consume 3~4Mb more + few more php cached. check ur xcache admin cp & if needed reduce allocated memory OR if u got enugh memory at ur box/server ..then u can use 100MB+100 Mb. Point is that u have to put same MB of memory at xcache.size & xcache.var_size php file in the attachmnet Quote:
|
#20
|
||||
|
||||
No - I need 100mb. I have tried to reduce it, but was getting ooms using 90mb. I'll give it a try later. Thanks.
|
#21
|
||||
|
||||
So I need to replace the class_datastore.php file with the included file (renamed)?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|