does ob_end_flush() end all ob?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lawrence

    does ob_end_flush() end all ob?

    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() {
    ob_end_flush();
    flush();

    $controllerForA ll = & getController() ;
    $templateObject = & $controllerForA ll->getObject("McT emplates", " in
    renderPage().") ;
    $templateObject->getTemplate( );
    $templateObject->renderTemplate ();

    flush();
    }



    an example of slowness is www.krubner.com
  • lawrence

    #2
    Re: ob_end_flush() not ending output buffering

    lkrubner@geocit ies.com (lawrence) wrote in message news:<da7e68e8. 0409291439.7114 cd16@posting.go ogle.com>...

    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
    called.


    [color=blue]
    > 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() {
    > ob_end_flush();
    > flush();
    >
    > $controllerForA ll = & getController() ;
    > $templateObject = & $controllerForA ll->getObject("McT emplates", " in
    > renderPage().") ;
    > $templateObject->getTemplate( );
    > $templateObject->renderTemplate ();
    >
    > flush();
    > }
    >
    >
    >
    > an example of slowness is www.krubner.com[/color]

    Comment

    Working...