object cache를 삭제하지 못할수있는 버그수정 #190

This commit is contained in:
thisgun
2022-05-25 18:57:16 +09:00
parent 096f744f61
commit e3016b7a77

View File

@ -6,7 +6,7 @@ Class G5_object_cache {
public $contents = array(); public $contents = array();
public $etcs = array(); public $etcs = array();
function get($type, $key, $group ='default') { function get($type, $key, $group ='default') {
switch ($type) { switch ($type) {
case 'bbs': case 'bbs':
@ -28,10 +28,10 @@ Class G5_object_cache {
} }
return false; return false;
} }
function exists($type, $key, $group = 'default' ) {
function exists($type, $key, $group = 'default' ) {
$return_data = ''; $return_data = '';
switch ($type) { switch ($type) {
@ -47,9 +47,9 @@ Class G5_object_cache {
} }
return isset($datas[$group]) && ( isset($datas[$group][$key]) || array_key_exists($key, $datas[$group]) ); return isset($datas[$group]) && ( isset($datas[$group][$key]) || array_key_exists($key, $datas[$group]) );
} }
function set($type, $key, $data=array(), $group='default') { function set($type, $key, $data=array(), $group='default') {
if ( is_object( $data ) ) if ( is_object( $data ) )
$data = clone $data; $data = clone $data;
@ -65,10 +65,10 @@ Class G5_object_cache {
break; break;
} }
} }
function delete($key, $group='default') { function delete($key, $group='default') {
switch ($type) { switch ($key) {
case 'bbs': case 'bbs':
$datas = $this->writes; $datas = $this->writes;
break; break;