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 |
#212
|
|||
|
|||
Have you installed XCache as PHP extension? Would you please post your php.ini?
|
#213
|
||||
|
||||
yes, XCach? is running and I have 8 threads of php cached, but no cached vars.
|
#214
|
|||
|
|||
Hi moo
such a nice work! my huge forum is on the fly with lighty n xcache Opcode cache works like a charm, Variable cache is workin too but there is sth wrong with this class to me it kills my forum when i swich datastore to this class! server load increases upto 12 then will changes frequency up and down Im using XCache for Template Cache module without such problem! template vars are cached and they'r fetching as charm but for datastore it s*x! sth wrong when cachin or probably fetchin here is my xcache admin interface snaps which indicates what i wrote Attachment 76647 and here is my xcache configuration using 8 splits due to SMP CPU ( Clovertown Quad Core ) Code:
[xcache] xcache.shm_scheme = "mmap" xcache.size = 32M xcache.count = 8 xcache.slots = 16K xcache.ttl = 0 xcache.gc_interval = 0 xcache.var_size = 32M xcache.var_count = 8 xcache.var_slots = 16K xcache.var_ttl = 0 xcache.var_maxttl = 0 xcache.var_gc_interval = 300 xcache.test = Off xcache.readonly_protection = Off xcache.mmap_path = "/dev/zero" xcache.coredump_directory = "/tmp/phpcore/" xcache.cacher = On xcache.stat = On xcache.optimizer = Off [xcache.coverager] xcache.coverager = Off xcache.coveragedump_directory = "" Please help me guys, any suggestion is welcome! Regards |
#215
|
|||
|
|||
Quote:
make sure that ur config.php is clean by one $config['Datastore']['class'] assigned by 'vB_Datastore_XCache' and not commented out! |
#216
|
|||
|
|||
Quote:
|
#217
|
||||
|
||||
Ok I solved the mistery. I spoke to the machine admin (I run the forum but I avoid messing with server configuration for I am no linux expert) and he told me that he compiled xcache without var cache support. He thought it wasn't necessary.
We will recompile in a few days. I'll update you guys then. |
#218
|
|||
|
|||
IrPr! You should increase the memory for op code cache. OOMs (out of memory) is no good. Try using 64 MB & see if there are any OOMs.
|
#219
|
|||
|
|||
Quote:
but what about Datastore class issue? i mean Variable cache any idea? BTW is there any other modification which conflicts with? |
#221
|
|||
|
|||
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|