Enable Memcached / Redis in Carbon Forum

Enable Memcached / Redis in Carbon Forum

By lincanbin at 2015-07-21
0 collector • 131 pageviews

Open config.php and edit:

<?php
date_default_timezone_set('Asia/Shanghai');//设置中国时区
$SALT = 'AuthorIsLinCanbin';//Salt,用于Cookie与Form,随便改
$Prefix = 'carbon_';
define('InternalAccess', true);
/*模板文件使用
if (!defined('InternalAccess')) exit('error: 403 Access Denied');
来防止模板文件被游客访问
*/
define('ForumLanguage', 'zh-cn');
//MemCache(d) / Redis
define('EnableMemcache', false);
define('MemCacheHost', '127.0.0.1');
define('MemCachePort', 11211);
define('MemCachePrefix', 'carbon_');
//Database
define('DBHost', '127.0.0.1');
define('DBName', 'carbon');
define('DBUser', 'root');
define('DBPassword', '123456');

Set this to true:

//MemCache(d) / Redis
define('EnableMemcache', true);


Log in



Sign up

GitHub  Log in