[英]ob_start() slows the script
我正在使用ob_start('ob_gzhandler')
来压缩我的脚本。但是脚本需要太多时间来执行。 我在register_shutdown_function()
() 的回调 function 中添加了ob_end_flush()
方法,因为我不能直接在代码中添加ob_end_flush()
。这是延迟的问题吗? 请给我建议以加快我的脚本。谢谢
建议? Well... Don't use ob_gzhandler
, use front-end abilities to zip output - apache, nginx can do this.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.