Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
スクリプトの圧縮に使用ob_start('ob_gzhandler')していますが、スクリプトの実行に時間がかかりすぎます。コードに直接追加できないためob_end_flush()、 のコールバック関数にメソッドを追加しました。これは遅延の問題ですか? スクリプトを高速化するための提案をお願いします。ありがとうございますregister_shutdown_function()ob_end_flush()
ob_start('ob_gzhandler')
ob_end_flush()
register_shutdown_function()
提案?ええと... を使用しないでください。ob_gzhandlerフロントエンド機能を使用して出力を圧縮します-Apache、nginxでこれを実行できます。
ob_gzhandler