![]() |
|
Mod Options |
![]() |
|||||||||||||||||||
datastore cache to XCache - boost your vBulletin
![]() Developer Last Online: Mar 2008 ![]() ![]() ![]() This modification is in the archives.
(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:
example config.php after modification:
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 ) Download Now Only licensed members can download files, Click Here for more information. Supporters / CoAuthors Screenshots Show Your Support
No members have liked this post.
|
Comments |
#2
|
||||
|
||||
w00t
![]() ![]() ![]() Edit: Installed. 2 query reduced at forum home. Works like a charm. Screenshot added. No members have liked this post.
Last edited by Mudvayne; 09 Mar 2007 at 11:24. |
#3
|
||||
|
||||
Man..what u have done ?
Simply tremendous.......... Xcache rocks............ sure it will work better than others.. Xcache is working simply good......in my vb board...even it works better than eAcc. it reduced my server load more.... can u say how much ram will be needed for using this? min.requirments? Thanx...... No members have liked this post.
Last edited by Zia; 03 Mar 2007 at 08:05. |
#4
|
||||
|
||||
Hope to get it with in vb at next release...
i gez after install it we wont need memcache any more ???? No members have liked this post.
|
#5
|
|||
|
|||
Sorry, all this talk is way over my head, can someone explain what this is about in laymans terms please?
Do i need to install this? No members have liked this post.
|
#6
|
||||
|
||||
helo bashy..
like; some of us using eAcc or APC or Xcache for php accleration. If u have Xcache installed on ur box for php cache/optimize u can install it for datastore cache. atm we are on Xcache and it really works nice than eAcc.And it reduce more serverload than eAcc. Xcache is perfectly working with php5.2.* series. http://trac.lighttpd.net/xcache/ Xcache have option to cache php & variable.....to enable datastore cache for vb+xcache. Gonna install this patch for data-store cache. No members have liked this post.
Last edited by Zia; 03 Mar 2007 at 09:09. |
#7
|
|||
|
|||
Ah right ok thanks Zia i understand now
![]() No members have liked this post.
|
#8
|
||||
|
||||
![]() which cacher/acclereator do u use? No members have liked this post.
|
#10
|
|||
|
|||
Sorry if i am sound stupid but i dont know how to apply the patch... i have xcache allready in the box with php 5.2 (2k3 box) and im little confused cause i never applied a patch in my vb.
Can someone explain? No members have liked this post.
|
#11
|
||||
|
||||
edit file includes/class_datastore.php
at th end (above ?>) add nether php code
and edit includes/config.php 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 No members have liked this post.
|
#12
|
||||
|
||||
No members have liked this post.
|
#13
|
|||
|
|||
I assume we put the "vB_Datastore_XCache" File in the includes/datastore directory?
No members have liked this post.
|
#14
|
|||
|
|||
My server OS window 2003 . .Apache v2.0.59 , PHP 4.4.5
Can i use it . sorry for my bad english No members have liked this post.
|
#15
|
||||
|
||||
Originally Posted by lendy
Eh? My var size is 0. You saying I have to set this to the same as what the xcache.size is? (100mb). Really? That much?![]()
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.
__________________
No signature - please check back later No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 16:40.