Buffer Flush Fix
v1.0openwrite · 2019年10月4日 上架
If you've run into the error "failed to send buffer of zlib output compression" with WordPress, this simple plugin fixes the issue.
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 1,534
- 最近更新
- 2019年10月5日
需要 WordPress 2.2+已测试到 5.2.31
贡献者
If you’ve run into the error “failed to send buffer of zlib output compression” with WordPress, this simple plugin fixes the issue.
The plugin replaces the default “wp_ob_end_flush_all” implementation, by adding a check for whether zlib compression is on. If it is,
then buffer level one isn’t flushed. This prevents WordPress from trying to flush the ‘reserved’ compression buffer, which causes an error.
A patch has also been submitted to the WordPress core, with this plugin as an interim solution.