修正若干Bug

This commit is contained in:
NaiXiaoXin 2017-02-02 18:18:45 +08:00
parent 4ec04d0b5f
commit 03aedc7a2f
3 changed files with 9 additions and 3 deletions

View File

@ -2242,7 +2242,7 @@ EOT;
$cache_config['wincache'] ? cplang('open') : cplang('closed'),
$cache_type == 'wincache' ? $do_clear_link : '--'
);
$wincache = array('yac',
$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 : '--'

View File

@ -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) {

View File

@ -25,7 +25,13 @@ class memory_driver_yac
}
public function getMulti($keys) {
return $this->object->get($keys);
$result = $this->object->get($keys);
foreach ($result as $key => $value) {
if($value===false){
unset($result[$key]);
}
}
return $result;
}
public function set($key, $value, $ttl = 0) {