Home > Article > CMS Tutorial > How to speed up the display speed of article pages in DreamWeaver
1. Enter the root directory of dedecms and find the following directory:
include/inc/inc_fun_SpGetArcList.php
2. After finding it, it is best to download it locally and open it to find the following code:
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].”‘) “; }
3. After finding the above code, you can comment out or replace the above code. Replace it with the following code:
for($i=0;$i<$ridnum;$i++){ if($tpsql==””) $tpsql .= ” And (“.TypeGetSunID($reids[$i],$dsql,’arc’); else $tpsql .= ” Or “.TypeGetSunID($reids[$i],$dsql,’arc’);
Find:
$orwhere .= " And ( arc.typeid in ($sonids) Or arc.typeid2 in ($sonids) ) "
Replace with:
$orwhere .= " And arc.typeid in ($sonids) ";
Specific optimization steps:
1. Close the sub-column and reduce the generation speed from 20 pages in 50 seconds to 20 pages in 20 seconds
2. Delete the Call the tag of a random document (that is, the one with sort=rand in arclist) to enable all caches that can be found in the background. The generation speed drops from 20 pages in 20 seconds to more than 6 pages in 6 seconds.
3. Delete the document template For related documents in , the generation speed dropped sharply from 6 seconds to less than one second
Recommended tutorial: dedecms tutorial
The above is the detailed content of How to speed up the display speed of article pages in DreamWeaver. For more information, please follow other related articles on the PHP Chinese website!