加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > CMS系统 > Dedecms > 正文

Dedecms 织梦后台生成速度慢 的解决办法

发布时间:2020-12-14 03:59:30 所属栏目:Dedecms 来源:网络整理
导读:打开 include/inc/inc_fun_SpGetArcList.php 找到下面代码 for($i=0;$i if($tpsql=="") $tpsql .= " And ( (".TypeGetSunID($reids[$i],$dsql,'arc')." Or arc.typeid2='".$reids[$i]."') ";? else $tpsql .= " Or (".TypeGetSunID($reids[$i],'arc')." Or a
打开include/inc/inc_fun_SpGetArcList.php找到下面代码
  1. for($i=0;$i<$ridnum;$i++){?
  2. if($tpsql=="") $tpsql .= " And ( (".TypeGetSunID($reids[$i],$dsql,'arc')." Or arc.typeid2='".$reids[$i]."') ";?
  3. else $tpsql .= " Or (".TypeGetSunID($reids[$i],'arc')." Or arc.typeid2='".$reids[$i]."') ";?
  4. }?
//上面的这段注释掉,用下面的替换?
  1. for($i=0;$i<$ridnum;$i++){?
  2. if($tpsql=="") $tpsql .= " And (".TypeGetSunID($reids[$i],'arc');?
  3. else $tpsql .= " Or ".TypeGetSunID($reids[$i],'arc');?
  4. }?
速度快好几倍,原理就是,副栏目不用参与了,极大的提高了运行速度。?
不过如果大家的 副栏目 使用的比较多,不建议用。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读