Echoing content sometimes takes a very long time

前端 未结 8 1971
眼角桃花
眼角桃花 2021-02-19 16:20

I have a script that builds my webpage in one string ($content) and then echo it to the user.

My script looks like this:

$time1= microtime(true);
$conten         


        
8条回答
  •  無奈伤痛
    2021-02-19 16:32

    If this is dedicated server - please login to console and see which process uses a lot of cpu time when you generating content. Its very hard to tell, when we cant see code. Maybe you just need some indexes in database, or maybe you should remove some indexes.

    You can also check httpd and mysqld log files.

提交回复
热议问题