Dedecms 生成速度慢 的解决办法
2009-08-02 20:02
387 查看
从dedecms官网论坛找到个合适的代码
include/inc/inc_fun_SpGetArcList.php
//上面的这段注释掉,用下面的替换
速度快好几倍,原理就是,副栏目不用参与了,极大的提高了运行速度。
不过如果大家的 副栏目 使用的比较多,不建议用。
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'); }
速度快好几倍,原理就是,副栏目不用参与了,极大的提高了运行速度。
不过如果大家的 副栏目 使用的比较多,不建议用。
相关文章推荐
- Dedecms 生成速度慢 的解决办法
- DEDECMS 生成静态提示“模板文件不存在,无法解析文档!”解决办法
- 织梦dedecms5.7生成首页提示404错误解决办法
- Dedecms生成静态页面非常慢解决办法
- DEDECMS5.7安装后首页慢或无法生成首页的解决办法
- DedeCMS升级后无法生成HTML文档的解决办法
- DedeCms采集没有自动生成摘要和关键字的解决办法
- QT下生成可执行程序的方法及一些问题解决办法:
- DedeCMS内容页受统计影响打开速度慢的解决方法
- dedecms问答模块时间显示1970-01-01的解决办法
- MYSQL 服务器查询速度慢原因分析与解决办法
- 【原创】网站抓包HttpWebRequest不返回Javascript生成的Cookie的解决办法
- quartus不能生成pof文件的解决办法
- Android Studio 生成Release版,报Warning的解决办法
- maven下载jar包速度慢(解决办法)
- dedecms幻灯片无法显示的解决办法
- Eclipse下android的R文件不生成最全终极解决办法
- asix2eclipse插件生成文件service.xml问题及解决办法.txt
- 在本机部署的dedecms网站上传到空间后出现首页不能访问的解决办法
- eclipse android 不会自动生成R.java文件和包的解决办法