这个补丁让你可以使用 XCache 作为 vBulletin 的 datastore 缓冲器. 如果您已经使用了 XCache, 这绝对是您的最佳选择.
要注意的是, 这个补丁目前还是 beta 版本, 因为没有经过深入的测试. 而且我还不太熟悉 vBulletin 的源代码, 因为昨天我才刚开始阅读, 不过几年的 php 功夫阅读它似乎没什么问题 
使用要求(前提要素)安装这个 Mod- 下载附件 class_datastore_xcache.php
- 将文件保存到 vBulletin.3.6/upload/includes/class_datastore_xcache.php
- 用您喜爱的编辑器打开 vBulletin.3.6/upload/includes/class_datastore.php
- 在 class_datastore.php 文件末尾, ?> 之前, 增加一行语句 require_once (参考代码片段1)
- 修改 upload/includes/config.php 增加一行配置, 启用 vB_Datastore_XCache (参考代码片段2)
代码片段1: 修改后的 example class_datastore.php 片段 (增加1行代码)
PHP 代码:
}
return true;
}
}
// 增加 class_datastore_xcache, 需要在 config.php 中启用
require_once(DIR . '/includes/class_datastore_xcache.php');
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 12:33, Fri Mar 2nd 2007
|| # CVS: $RCSfile$ - $Revision: 15474 $
|| ####################################################################
\*======================================================================*/
(不包括注释只修改1行代码)
代码片段2: 修改后的 example config.php 片段 (增加1行配置)
PHP 代码:
// vB_Datastore_Filecache - for using a cache file
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';
$config['Datastore']['class'] = 'vB_Datastore_XCache';
// vB_Datastore_Memcached - for using a Memcache server
// It is also necessary to specify the hostname or IP address and the port the server is listening on