• Resolved joinfof

    (@joinfof)


    I’m sure it’s hard to give a one-size-fits-all answer, but I’m curious if you can recommend a good PHP Output Buffering setting? I currently have mine set to 4096 and it’s displaying in red when viewing my Bulletproof Security > System Info tab.

    Any insight is appreciated and I look forward to hearing back.

    https://ww.wp.xz.cn/plugins/bulletproof-security/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author AITpro

    (@aitpro)

    Ouput Buffering should be set to Off or 0 (also means Off) in your php.ini file or .user.ini file for WordPress sites.

    Performance WP Specific: Allow or Disallow output buffering. Output buffering is a mechanism for controlling how much output data (excluding headers and cookies) PHP should keep internally before pushing that data to the client. Output buffering does not work well on WordPress sites and causes slower performance. For other types of sites that are NOT WordPress the recommended output buffering setting is: output_buffering = 4096. The ouput buffering setting for WordPress should be: output_buffering = 0 or output_buffering = Off.

    Thread Starter joinfof

    (@joinfof)

    Awesome – I’ve updated my output_buffering from 4096 to 0. Thanks again for the helpful advice. I’ll do more research now that I’ve got a good starting point 🙂

    Take care!

    Plugin Author AITpro

    (@aitpro)

    Very welcome and I forgot to point out this very important detail. Why output buffering should not be used sitewide at the php.ini server config level. WordPress and plugins and themes use various PHP Ouput Control functions: http://php.net/manual/en/ref.outcontrol.php as needed/case by case/isolated areas. So if output buffering is turned on sitewide at the php.ini server config level then you can run into issues like “double buffering” and other odd problems. So it is better use ouput buffering as needed (WP Core, plugins, themes, etc.) instead of doing a “blanket” setting thing at the server level.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Recommended PHP Output Buffering setting?’ is closed to new replies.