Public function _links ($attr, $content) {
$attr = $this->parseXmlAttr($attr);
$str = '<?php ';
$str .= '$links_cate = M("link")->order("' . $attr['id'] . '")->limit(' .$attr["limit"] . ')->select();';
$str .= 'foreach ($links_cate as $links_cate_v):extract($links_cate_v);'; //去掉前台调用是$v.
$str .= '?>';
$str .= $content;
$str .= '<?php endforeach;?>';
return $str;
}有没有可以批量设置或者全站设置缓存的方法啊?? 最佳答案