修正若干Bug
This commit is contained in:
parent
4ec04d0b5f
commit
03aedc7a2f
|
@ -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 : '--'
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue