Joomla 3.8 Vs Output Buffering - Off or On?

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
User avatar
Chacapamac
Joomla! Guru
Joomla! Guru
Posts: 921
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

Joomla 3.8 Vs Output Buffering - Off or On?

Post by Chacapamac » Sun Dec 31, 2017 3:34 pm

With Joomla 3.8 up, do you really need Output Buffering Off ?

I try to turn it off (without Success) in my htaccess with the addition of this line
output_buffering = OFF;

I will contact my hosting, but before i like to understand why it should be off on Joomla and the consequences to keep it On...

Can somebody explain ?

Happy New Year everybody — :pop
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 5126
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Joomla 3.8 Vs Output Buffering - Off or On?

Post by AMurray » Sun Dec 31, 2017 10:07 pm

http://web.archive.org/web/201012160353 ... ners-guide

The above is a reasonable introductory, (but aimed more at web developers), explanation of what Output Buffering is and what it does (I'm none the wiser really)....but is not a specific answer to the question about why it needs to be off for Joomla installations.

I'd also be interested in seeing an explanation from a Joomla expert.
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 5126
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Joomla 3.8 Vs Output Buffering - Off or On?

Post by AMurray » Sun Dec 31, 2017 11:11 pm

You used the incorrect syntax for .htaccess to turn the buffering off; try this instead:

Code: Select all

php_value output_buffering Off
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

User avatar
Chacapamac
Joomla! Guru
Joomla! Guru
Posts: 921
Joined: Wed Feb 20, 2008 6:50 am
Location: Canada, Montreal
Contact:

Re: Joomla 3.8 Vs Output Buffering - Off or On?

Post by Chacapamac » Mon Jan 01, 2018 2:55 pm

Thanks Murray for your answer, I try

Code: Select all

php_value output_buffering Off
at the end of my htaccess and it didn’t work, it seem that the default server settings, in this case, override my htaccess?


The clearer definition I find about Output_Buffering is:
USING THE OUTPUT_BUFFERING DIRECTIVE

By default, when PHP processes a script, it sends output to the client in multiple chunks until script processing is complete. You can change this behavior and set PHP to buffer output during script processing instead.

When output buffering is enabled, PHP sends all of the output to the client only after script processing is complete. There are two main reasons why you may want to do this:

Output buffering enables you to send headers to the client after PHP has started processing a script.
Output buffering may improve site performance.
I Like that more in depth explanation:
https://www.sitepoint.com/php-streaming ... explained/
Can God help us?
Marketing, SEO, Web development - Powered by Joomla!
http://www.grafcomm.ca/

User avatar
DaveOzric
Joomla! Ace
Joomla! Ace
Posts: 1549
Joined: Sat May 22, 2010 10:29 pm
Contact:

Re: Joomla 3.8 Vs Output Buffering - Off or On?

Post by DaveOzric » Tue Jun 11, 2019 2:45 pm

I find this strange no one has actually answered this question. SiteGround has it enabled on their shared hosting.

Can the Joomla developers answer this?

User avatar
DaveOzric
Joomla! Ace
Joomla! Ace
Posts: 1549
Joined: Sat May 22, 2010 10:29 pm
Contact:

Re: Joomla 3.8 Vs Output Buffering - Off or On?

Post by DaveOzric » Fri Nov 15, 2019 5:03 pm

Anyone?

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 5126
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Joomla 3.8 Vs Output Buffering - Off or On?

Post by AMurray » Fri Nov 15, 2019 9:37 pm

The post is 2 years old.......can't find anything as to why Output Buffering is "good" or "bad". Only programmers would understand the hows, and whys.

Searching "why does joomla recommend output buffering Off" - all it returns is this forum question as the #1 top listed search result and not much else. A lot of "how" to turn it off, but not much on "why".

Short answer: I don't know
Long answer: see Short Answer.

;) :)
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 8223
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Joomla 3.8 Vs Output Buffering - Off or On?

Post by sozzled » Fri Nov 15, 2019 9:54 pm

I agree with @AMurray. I found a few search results about the pros and cons of output buffering here: https://lmgtfy.com/?q=%22output+bufferi ... ood+or+bad

It's a very technical subject and most people would agree that the answer (one way or the other) is on a need-to-know-basis. OB usually doesn't interfere with a normal website—i.e. ninety-nine out of hundred sites—but there's always going to be that one site where it's a hindrance and you need a workaround.

I've never needed to know the answer. BTW, my websites don't use OB but it wasn't something I explicitly turned off.
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)


Post Reply

Return to “Installation Joomla! 3.x”