加入收藏 | 设为首页 | 会员中心 | 我要投稿 唐山站长网 (https://www.0315zz.com.cn/)- 数据安全、数据开发、文字识别、图像处理、媒体智能!
当前位置: 首页 > 教程 > 正文

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

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

(编辑:唐山站长网)

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

    热点阅读