ob_flush需要很长时间才能执行

use*_*948 10 php performance output-buffering drupal-7

在我的网站(使用drupal运行)中,该ob_flush函数需要很长时间(在10到100秒之间)才能执行.我如何找出原因?什么能导致这么长时间? 在此输入图像描述

lal*_*222 -2

使用

<?ob_start();?>
Run Code Online (Sandbox Code Playgroud)

在页面的开头和

 <?ob_flush();?>
Run Code Online (Sandbox Code Playgroud)

在页面末尾,解决这个问题。