删除指定OFFSET的ORM的缓存(如果有)
boolean Module_OOP_ORM_Data::delete_orm_cache( string $index )
参数列表
参数 类型 描述 默认值 $index
string
$index
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 );
}