![]() |
datastore cache to XCache - boost your vBulletin
(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 ) |
w00t :D. I 'll try this as soon as I'm home :D. Clicked install :D.
Edit: Installed. 2 query reduced at forum home. Works like a charm. Screenshot added. |
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...... |
Hope to get it with in vb at next release...
i gez after install it we wont need memcache any more ???? |
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? |
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. |
Ah right ok thanks Zia i understand now :)
|
:) Just curious bashy...
which cacher/acclereator do u use? |
Reserved, thanks.
|
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? |
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 |
Quote:
|
I assume we put the "vB_Datastore_XCache" File in the includes/datastore directory?
|
My server OS window 2003 . .Apache v2.0.59 , PHP 4.4.5
Can i use it . sorry for my bad english |
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. |
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 |
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. |
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 . :confused: did u really need that much memory ?:eek: 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:
|
No - I need 100mb. I have tried to reduce it, but was getting ooms using 90mb. I'll give it a try later. Thanks.
|
Quote:
|
Quote:
then did u try 10 or 20 Mb for xcache.var_size ? |
Thx guys for the reply... i got it working now.. is there anyway that i can see stats of the site how is it going... what is cached etc?
|
Nevermind i got the admin page working and i see the statistics... the point is i dont see cache working really... or i am mistaken.... see my php.ini settings
Code:
[xcache] Also in admin page of xcache i see this results in the attached gif. the only 4 hits that had cached is the pages from admin of xcache, do i need to do something extra in my VB? or anywhere else? |
国内的兄弟??
|
Quote:
seemed that ur cache is working... i m confused ur var.cache is working or not :confused: .....did u follow all the steps properly to enable var.cache? |
Quote:
See Faq: Why is my cache being cleared? |
I use IIS with php 5.2.1 ... but i got the big picture from the links and other search i did on web...
I think the problem is that i use fast-cgi..... this dont not work good in windows cause caching programs cannot share among many worker processes that windows run for each user ... my 2 options now is run as isapi i suppose or w8 for something else...... i dont know what else i can do. Quote:
|
Getting this error:
Fatal error: Cannot redeclare class vb_datastore:vb_datastore_xcache in /home/migweb/public_html/forums/includes/class_datastore_xcache.php on line 14 I double checked everything. |
Quote:
search includes/* for string "vB_Datastore_XCache" (without the quotes) |
Hmmm... now getting:
Fatal error: XCache variable data cache is not enabled, please set xcache.var_size in php.ini in /includes/class_datastore_xcache.php on line 39 xcahce.var_size is set to 10 and is showing in the xcache cp. |
as i said, set it to 10M or so, not 10
|
Looks nice I'll keep watch see if there are any bugs
|
Sorry, typo. I am running 10M.
Just spotted something. I'm using 3.6.4. Is that ok? Thanks. |
the php cache part and the size of var cache looks good. but var cache is not caching anything in your case. did u request the vBulletin first to let it cache something in?
|
Quote:
seemd ur var.cache isnt working..... ask phpxcache .. diff. of xcache.count & xcache.var count will be a probs or not... vb3.6.4 or 3.6.5 wont be a problem |
thx *installed*
(works nice) :) |
viyanali yea..should be...one of the koolest thing..this is
even Xc consume less memory than eAcc or APC |
phpxcache sorry m8 but i uninstalled it cause with it vbgooglemaphse & vbgooglemapme stopped working... they produced a white page without errors or anything..
I stay with xcache for template caching |
I'm currently using APC on my major vB forum
do u suggest me to switch to XCache ? |
Quote:
i would like to request u to provide as much as info possible for u to provide phpxcache for proper diagonisis & soltion... or if u face error with Xcache drop ur issue http://trac.lighttpd.net/xcache/newticket .Soon..very soon u will get the reply.. Quote:
Do u know why? Coz,this is really too kool it works gr8 with less memory consumption even it makes my forum more faster than before. and the main reason is that the author is very much agger to digg any bug & solve it ASAP. wich i didnt get in eAcc or APC. dicission is urs. |
All times are GMT. The time now is 04:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|