簡體   English   中英

ob_start() 減慢腳本

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM