首页
开发手册
应用中心
工具
用户中心
DBO Application:Cache Csage
English
中文简体
English
上一篇
下一篇
### DBO Application:Cache Csage During the development process, engineers will encounter some situations where a large number of database queries must be made. At this time, DBO caching can be used to reduce the access time when entering the page for the second time. ##### DBO Cache Usage ```php cache($cache_name,$cache_time)==1){ //database query $sql = sql_select( array('table'=>'articles','order'=>'cate_id ASC', 'type' => 'sql') ); $query = $db->query($sql); while($dls = $db->fetch_array($query)){ $list_ary[] = $dls; } } //release cache extract($db->cache($cache_name)); //You can use $list_ary to operate normally ?> ```