/** * 删除指定OFFSET的ORM的缓存(如果有) * * @param string $index * @return boolean */ public function delete_orm_cache($index) { # 获取配置 $config = $this->_get_offset_config($index); # 不存在指定的配置 if (!$config) { return false; } # 无缓存设置 if (!isset($config['orm']['cache'])) { return true; } $c_config = $config['orm']; foreach ($c_config['mapping'] as &$item) { $item = $this->{$item}; } return OOP_ORM_Parse::delete_orm_cache_data($this, $index, $c_config); }