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 |
#102
|
|||
|
|||
Quote:
this hack/addon just allow you cache datastore to XCache beside memcached/file/apc/... so if you wanna use memcache for DB/datastore, just install XCache extension but not this hack. the meaning of "datastore" is defined by vbulletin, not me. it's simply a DB cache, nothing more, nothing less. |
#103
|
|||
|
|||
Quote:
beside of that, What do you think will do the work better Xcache with this hack or Memcache? Are they doing the same things? There is DC caching and PHP caching, What do I use Memcache for? |
#104
|
|||
|
|||
XCache datastore is same as file/apc/memcached data sore, u just pick one of them.
1. use XCache for php caching, and/or: 2. use of and ONLY one of "ea/file/apc/memcached/XCache" for datastore caching, u can't do Xcache_datastore + memcached_datastore or anther combination, but you can xcache_php_caching + xcache_datastore or xcache_php_caching + memcached_datastore or xcache_php_caching + file_datastore etc "ea/file/apc/memcached" is officially supported by vBulletin, this hack only add and XCache optional choice for you. |
#105
|
|||
|
|||
What is the lowest I should set my var.cache size?
Would it be foolish to set it to something as low a 4M? I ask because after running it for about an hour I only used around 2mb of the cache and it was showing no signs of maxing out. |
#106
|
||||
|
||||
4M is plenty if you are only using it for vbulletin (I only have mine set to 2M).
|
#107
|
|||
|
|||
Quote:
Are you planning to release a modification that will work with Xcache / memcache and will cache php too? Thanks a lot. |
#108
|
||||
|
||||
Quote:
More exacly, use memcached for datastore and XCache for the php files. I built my own rpms, optimized for lighty and vbulletin. Please dont ask me anything if you use Crapache. |
#109
|
|||
|
|||
I have installed this modification, and nothing is changed..
how can I Be 100% that this modification is doing some thing? :\ Maybe I havn't installed it property , but there isn't anything to do, upload a file and to add a line in the config file.. what may be wrong? config file - PHP Code:
PHP Code:
|
#110
|
|||
|
|||
Quote:
|
#111
|
|||
|
|||
I've done it after posting here, and still there in no change..
how can i check and see if the modification actually works? View the Attachments file maybe it will give you some clue, I've installed the cache templates modification as well.. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|