Title: Recommended PHP Output Buffering setting?
Last modified: August 31, 2016

---

# Recommended PHP Output Buffering setting?

 *  Resolved [joinfof](https://wordpress.org/support/users/joinfof/)
 * (@joinfof)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/recommended-php-output-buffering-setting/)
 * 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://wordpress.org/plugins/bulletproof-security/](https://wordpress.org/plugins/bulletproof-security/)

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

 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/recommended-php-output-buffering-setting/#post-7355814)
 * 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](https://wordpress.org/support/users/joinfof/)
 * (@joinfof)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/recommended-php-output-buffering-setting/#post-7355889)
 * 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](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/recommended-php-output-buffering-setting/#post-7355890)
 * 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](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.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [AITpro](https://wordpress.org/support/users/aitpro/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/recommended-php-output-buffering-setting/#post-7355890)
 * Status: resolved