Home > CMS Tutorial > DEDECMS > body text

How to speed up the display speed of article pages in DreamWeaver

王林
Release: 2019-11-07 09:41:38
Original
2025 people have browsed it

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
Copy after login

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=&#39;”.$reids[$i].”‘) “; else $tpsql .= ” Or (“.TypeGetSunID($reids[$i],$dsql,’arc’).” 
Or arc.typeid2=&#39;”.$reids[$i].”‘) “; }
Copy after login

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’);
Copy after login

Find:

$orwhere .= " And ( arc.typeid in ($sonids) Or arc.typeid2 in ($sonids) ) "
Copy after login

Replace with:

$orwhere .= " And arc.typeid in ($sonids) ";
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!