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();
$controllerForAll = & getController();
$templateObject = & $controllerForAll->getObject("McTemplates", " in
renderPage().");
$templateObject->getTemplate();
$templateObject->renderTemplate();
flush();
}
an example of slowness is www.krubner.com