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 |
#22
|
||||
|
||||
Quote:
then did u try 10 or 20 Mb for xcache.var_size ? |
#23
|
|||
|
|||
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?
|
#24
|
|||
|
|||
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] xcache.shm_scheme = "mmap" xcache.size = 32M xcache.count = 2 xcache.slots = 8K xcache.ttl = 0 xcache.gc_interval = 0 xcache.var_size = 32M xcache.var_count = 2 xcache.var_slots = 8K xcache.var_ttl = 0 xcache.var_maxttl = 0 xcache.var_gc_interval = 300 xcache.test = Off xcache.readonly_protection = Off xcache.mmap_path = "c:/temp" xcache.coredump_directory = "" xcache.cacher = On xcache.stat = On xcache.optimizer = On [xcache.coverager] xcache.coverager = Off xcache.coveragedump_directory = "" 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? |
#25
|
|||
|
|||
国内的兄弟??
|
#26
|
||||
|
||||
Quote:
seemed that ur cache is working... i m confused ur var.cache is working or not .....did u follow all the steps properly to enable var.cache? |
#27
|
|||
|
|||
Quote:
See Faq: Why is my cache being cleared? |
#28
|
|||
|
|||
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. Yeap i got same statistics for var cache... says that hasn't cached anything. |
#29
|
||||
|
||||
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. |
#30
|
|||
|
|||
Quote:
search includes/* for string "vB_Datastore_XCache" (without the quotes) |
#31
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|