[wordpress插件] Buffer Flush Fix缓冲区冲洗修复

wordpress 插件 文章 2020-03-13 10:10 648 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

If you’ve run into the error “failed to send buffer of zlib output compression” with WordPress, this simple plugin fixes the issue.

如果您在WordPress中遇到错误“无法发送zlib输出压缩缓冲区”,则此简单插件可以解决此问题。

The plugin replaces the default “wp_ob_end_flush_all” implementation, by adding a check for whether zlib compression is on.

该插件通过添加检查zlib压缩是否打开的方式来替换默认的“ wp_ob_end_flush_all”实现。

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.

这样可以防止WordPress尝试刷新“保留的”压缩缓冲区,从而导致错误。

A patch has also been submitted to the WordPress core, with this plugin as an interim solution.

一个补丁也已提交到WordPress核心,此插件作为临时解决方案。

下载地址
https://downloads.wordpress.org/plugin/buffer-flush-fix.zip
-EOF-

AI助手支持GPT4.0