版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ougexingfuba/article/details/80596188
$CATEGORY需要在专题文件中从缓存导入。
在你专题模板中最上面部分加上
{php $CATEGORYS = getcache('category_content_'.$siteid,'commons');}
如果还没出来,就用下面的
{php $siteid = $_GET['siteid'] ? $_GET['siteid'] : get_siteid();$CATEGORYS = getcache('category_content_'.$siteid,'commons');}