public static function _delete($cacheIds)
    {
        if (!is_array($cacheIds)) $cacheIds = array($cacheIds);

        $ret = true;
        if (!extension_loaded('apc') || PHP_SAPI == 'cli') {
            foreach ($cacheIds as $cacheId) {
                unset(self::$_cache[$cacheId]);
                $file = self::_getFileNameForCacheId($cacheId);
                if (!file_exists($file)) {
                    $ret = false;
                } else {
                    if (!unlink($file)) $ret = false;
                }
            }
            if (extension_loaded('apc')) {
                $result = Kwf_Util_Apc::callClearCacheByCli(array('clearCacheSimpleStatic' => implode(',', $cacheIds)));
                if (!$result['result']) $ret = false;
            }
        } else {
            $prefix = Kwf_Cache_Simple::$uniquePrefix.'-';
            foreach ($cacheIds as $cacheId) {
                if (!apc_delete($prefix.$cacheId)) {
                    $ret = false;
                }
            }
        }
        return $ret;
    }
public static function _delete($cacheIds)
    {
        if (!is_array($cacheIds)) $cacheIds = array($cacheIds);

        $ret = true;
        if (!extension_loaded('apc') || PHP_SAPI == 'cli') {
            foreach ($cacheIds as $cacheId) {
                unset(self::$_cache[$cacheId]);
                $file = self::_getFileNameForCacheId($cacheId);
                if (!file_exists($file)) {
                    $ret = false;
                } else {
                    if (!unlink($file)) $ret = false;
                }
            }
            if (extension_loaded('apc')) {
                $result = Kwf_Util_Apc::callClearCacheByCli(array('clearCacheSimpleStatic' => implode(',', $cacheIds)));
                if (!$result['result']) $ret = false;
            }
        } else {
            $prefix = Kwf_Cache_Simple::$uniquePrefix.'-';
            foreach ($cacheIds as $cacheId) {
                if (!apc_delete($prefix.$cacheId)) {
                    $ret = false;
                }
            }
        }
        return $ret;
    }
public static function _delete ( $ cacheIds ) { if ( ! is_array ( $ cacheIds ) ) $ cacheIds = array ( $ cacheIds ) ; $ ret = true ; if ( ! extension_loaded ( 'apc' ) || PHP_SAPI == 'cli' ) { foreach ( $ cacheIds as $ cacheId ) { unset ( self :: $ _cache [ $ cacheId ] ) ; $ file = self :: _getFileNameForCacheId ( $ cacheId ) ; if ( ! file_exists ( $ file ) ) { $ ret = false ; } else { if ( ! unlink ( $ file ) ) $ ret = false ; } } if ( extension_loaded ( 'apc' ) ) { $ result = Kwf_Util_Apc :: callClearCacheByCli ( array ( 'clearCacheSimpleStatic' => implode ( ',' , $ cacheIds ) ) ) ; if ( ! $ result [ 'result' ] ) $ ret = false ; } } else { $ prefix = Kwf_Cache_Simple :: $ uniquePrefix . '-' ; foreach ( $ cacheIds as $ cacheId ) { if ( ! apc_delete ( $ prefix . $ cacheId ) ) { $ ret = false ; } } } return $ ret ; }
Delete static cache, don't use except in unittests

@internal
Delete static cache don t use except in unittests