473,473 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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();

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

flush();
}

an example of slowness is www.krubner.com
Jul 17 '05 #1
1 1965
lk******@geocities.com (lawrence) wrote in message news:<da**************************@posting.google. 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.
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

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jonas | last post by:
This works fine in Win XP but does not work at all in Win 98. Private WithEvents objIExplorer As InternetExplorer I have to do it like this to get it to work in Win 98 Dim objIExplorer As...
3
by: Jukka K. Korpela | last post by:
I have noticed that the meaning of visibility: collapse has been discussed on different forums, but with no consensus on what it really means. Besides, implementations differ. The specification...
11
by: Grant Edwards | last post by:
I've read over and over that Python leaves floating point issues up to the underlying platform. This seems to be largely true, but not always. My underlying platform (IA32 Linux) correctly...
0
by: Dirk Försterling | last post by:
Hi all, a few days ago, I upgraded from PostgreSQL 7.2.1 to 7.4, following the instructions in the INSTALL file, including dump and restore. All this worked fine without any error (message). ...
12
by: Frank Hauptlorenz | last post by:
Hello Out there! I have a DB2 V7.2 Database (Fix11) on Win 2000 Professional. It was before a NT 4 based Domain - now it is a Win 2000 Domain. The database server is a domain member. Now...
1
by: Georg Scholz | last post by:
Hello, The class "Control" contains a documented Property "ControlType". So for example, in a form, you can write code like this: Dim c as control set c = me.Controls("textbox1") if...
5
by: Barry Anderberg | last post by:
I'm using a tool by Sci-Tech called the .NET Memory Profiler. We have a massive .NET/C# application here and it has been exhibiting memory leak behavior for some time. Attempting to remedy the...
5
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to...
16
by: lawrence k | last post by:
I've a file upload script on my site. I just now used it to upload a small text document (10k). Everything worked fine. Then I tried to upload a 5.3 meg Quicktime video. Didn't work. I've...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.