does ob_end_flush() end all ob?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I didn't want blank space getting sent out before session headers or
cookies to the web, so I started using ob_start(). When it comes to
rendering the page, I wanted to turn it off, so I started to do what
you see below. Despite this, pages are taking forever to show up, and
then they are showing up suddenly, which is quite different than they
way they used to show up. It used to be you could see them render, and
you could see them pause at places on the page that needed database
calls. Now the page seems much, much slower, because it is white for
much longer. I don't think the final, overall time has changed, but it
seems much slower because you don't get to see anything at all till
everything is there. Here is the function:

function renderPage() {

    $controllerForAll = & getController();
    $templateObject = & $controllerForAll->getObject("McTemplates", " in

an example of slowness is

Re: ob_end_flush() not ending output buffering (lawrence) wrote in message

I guess I can start calling flush() after every echo statement, but
that would be ugly. I'd rather figure out what the problem is. The
pages, as I say, now appear suddenly, after a long pause, so it
certainly seems as if output buffering is still on even after I call
ob_end_flush(). Nothing seems to appear till the final flush() is

Quoted text here. Click to load it

Site Timeline