Fix后台展示错误,格式化代码
This commit is contained in:
parent
d36ffbb2be
commit
c312bcefe1
|
@ -115,7 +115,7 @@ $_config['memory']['apc'] = 1; // 启动对 apc 的支持
|
|||
$_config['memory']['xcache'] = 1; // 启动对 xcache 的支持
|
||||
$_config['memory']['eaccelerator'] = 1; // 启动对 eaccelerator 的支持
|
||||
$_config['memory']['wincache'] = 1; // 启动对 wincache 的支持
|
||||
$_config['memory']['yac'] = 1; //启动对 YAC的支持
|
||||
$_config['memory']['yac'] = 1; //启动对 YAC的支持
|
||||
// 服务器相关设置
|
||||
$_config['server']['id'] = 1; // 服务器编号,多webserver的时候,用于标识当前服务器的ID
|
||||
|
||||
|
|
|
@ -2242,11 +2242,11 @@ EOT;
|
|||
$cache_config['wincache'] ? cplang('open') : cplang('closed'),
|
||||
$cache_type == 'wincache' ? $do_clear_link : '--'
|
||||
);
|
||||
$wincache = array('Yac',
|
||||
$cache_extension['yac'] ? cplang('setting_memory_php_enable') : cplang('setting_memory_php_disable'),
|
||||
$cache_config['yac'] ? cplang('open') : cplang('closed'),
|
||||
$cache_type == 'yac' ? $do_clear_link : '--'
|
||||
);
|
||||
$yac = array('Yac',
|
||||
$cache_extension['yac'] ? cplang('setting_memory_php_enable') : cplang('setting_memory_php_disable'),
|
||||
$cache_config['yac'] ? cplang('open') : cplang('closed'),
|
||||
$cache_type == 'yac' ? $do_clear_link : '--'
|
||||
);
|
||||
showtablerow('', array('width="100"', 'width="120"', 'width="120"'), $redis);
|
||||
showtablerow('', '', $memcache);
|
||||
showtablerow('', '', $apc);
|
||||
|
|
|
@ -30,7 +30,7 @@ class discuz_memory extends discuz_base
|
|||
$this->extension['eaccelerator'] = function_exists('eaccelerator_get');
|
||||
$this->extension['wincache'] = function_exists('wincache_ucache_meminfo') && wincache_ucache_meminfo();
|
||||
$this->extension['xcache'] = function_exists('xcache_get');
|
||||
$this->extension['yac'] = extension_loaded('Yac');
|
||||
$this->extension['yac'] = extension_loaded('Yac');
|
||||
}
|
||||
|
||||
public function init($config) {
|
||||
|
|
Loading…
Reference in New Issue