开发者

ob_start() slows the script

I am using ob_start('ob_gzhandler') for compressing my script.But the script takes too much time for execution. I added ob_end_flush() method in the callback function of register_shutdo开发者_开发知识库wn_function() because i can't add ob_end_flush() directly in the code.Is this the problem for the delay? Please give me suggestions to speed up my script.Thank you


Suggestions? Well... Don't use ob_gzhandler, use front-end abilities to zip output - apache, nginx can do this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜