ob_flush takes long time to be executed
问题 In my website(running with drupal) the ob_flush function takes a long time(between 10 - 100 secs) to be executed. How do I find out why? What can cause this so long time? 回答1: Try this: ob_start(); //Your code to generate the output $result = ob_get_contents(); //save the contents of output buffer to a string ob_end_clean(); echo $result; It is run quick for me. 回答2: [You may want to tag your question with Drupal, since this feels like it might be a Drupal issue. Specifically, I suspect that