CFFlush Does Not Work Inside ColdFusion 8's CFLayout Tag

Posted October 10, 2007 at 2:18 PM by Ben Nadel

Tags: ColdFusion

Very minor note (and probably irrelevant to most of you), but last night at the New York ColdFusion User Group, I discovered that CFFlush does not work inside of ColdFusion 8's new CFLayout tag (and other layout based tags most likely). While this might not seem like a big deal, just realize that if you use CFLayout to build your entire site structure, this means that content cannot be flushed to the client until the entire page has been constructed on the ColdFusion application server.

Again, this probably doesn't mean anything to most of you, and for those of you who use CFSaveContent-based frameworks, this is something you are used to; however, for me, somehow, in my gut, I just feel that CFFlush is important. I can't tell you exactly why, I just feel it in my core.


You Might Also Be Interested In:



Reader Comments

Oct 10, 2007 at 3:00 PM // reply »
3 Comments

Also, cflayout tags wont work correctly on a full CSS layout, the Database Explorer application of Raymond Camden, doesnt work for me on FULL CSS layouts.


Oct 11, 2007 at 4:29 AM // reply »
16 Comments

yeah, I have problems with cflayout working sometimes, I believe it is something to do with the point at which the CF javascript and css files are included in the page.

I think the recent update to CF was supposed to address something like this..

Mat


Oct 11, 2007 at 11:41 AM // reply »
92 Comments

Ben you are the only developer who even uses cfflush. What a waste of a post and time! Sheesh! :) I tried the tag a few months back out of curiosity but never have had a need for it. How was the presentation? Hopefully you learned some neat things on cflayout.


Oct 11, 2007 at 11:52 AM // reply »
11,246 Comments

Great, now I have to do a post on the valid uses of CFFlush ;)

It was ok. I think the layout things that are going to be most useful are the ones that are tied to AJAX content updates. The CSS aspects I was not all that impressed with. Of course, we didn't cover it in-depth, that was just my preliminary feeling.


Oct 11, 2007 at 6:52 PM // reply »
4 Comments

I have to agree with Ben here. I only came across CFFlush relatively recently (though I'm sure I tried to find out if this was possible many years ago - perhaps it was introduced later), and do think it has a useful role to play in certain circumstances.

For one, it's very useful for providing feedback to the user when a template is performing alot of processing (importing a CSV file for instance or sending out a large number of e-mails). I've also toyed with the idea (although only a little) of using the ability to return output while a template is still processing to build a nice Javascript update bar or panel.

While it's not an everyday 'cool' feature, it is one of those things that just comes in damn handy for certain tasks we have to perform from time to time..


Mar 29, 2012 at 7:30 PM // reply »
2 Comments

I use CFFLUSH for an application that interfaces with a payment terminal. It's really important that my web page display the current status of a payment, because user input is required through the web page (eg. Did the customer sign the payment slip? a "yes" or "no" button must be clicked)

I can't think of any way this would work without CFFLUSH..... which is causing me a lot of drama when it works perfectly in a CF8 Test environment and not at all in my CF8 Production enroironment!


Jun 25, 2012 at 4:54 AM // reply »
2 Comments

Our CFFLUSH issues were related to the IIS6 "feature" that requires 73729 bytes in its buffer before it'll flush. We fixed it with a #repeatString(" ",73729)# before each CFFLUSH.


Aug 22, 2012 at 1:24 PM // reply »
46 Comments

I'm using ColdFusion 10 with IIS6 and CFFlush isn't working at all... even with the above-mentioned "73729 bytes" trick. (We haven't had any issues with CF8/9, IIS6 and CFFlush.)

I've reported it as a bug (w/sample CF code to duplicate the problem):
https://bugbase.adobe.com/index.cfm?event=bug&id=3315764

Can anyone else confirm or deny that CFFlush functions properly on ColdFusion 10? (I'm using Developer version on Windows 7 64bit OS w/IIS6.)


Aug 22, 2012 at 1:43 PM // reply »
46 Comments

I guess in order for CFFlush to work, some manual text editing of config files is required... I missed this when installing and will now need to remind myself this whenever reinstalling CF10. (CF8 & 9 didn't behave this way.)

http://help.adobe.com/en_US/ColdFusion/10.0/Installing/WSc3ff6d0ea77859461172e0811cdec18a15-7ffb.html
To disable webserver buffer, change the is_buffer_enable to false in the cfroot\config\wsconfig\1\isapi_redirect.properties file. Disable webserver buffer if you want cfflush to work over an IIS connector. If your application does not use cfflush, set it to true for increase in the performance.


Post A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
May 24, 2013 at 5:39 PM
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
@Adam Oops! My mistake! I hadn't gotten that far in my testing - I'm still baby stepping my way through the process. ... read »
May 24, 2013 at 5:13 PM
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
Hi Jason, Thanks for checking up on that, but I still stand firm on my position. :) There are actually two listLast()'s in use, and you're right that the one using a space as a delimiter is fine. ... read »
May 24, 2013 at 4:45 PM
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
@Ben I have been lurking your site for quite some time, and haven't stepped up to comment until today. Thanks for all the great info - keep it up! @Adam I believe you are mistaken... as the commen ... read »
May 24, 2013 at 11:21 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@WebManWalking, Ha ha, let's us never speak of justifying "##" notation again :P ... read »
May 24, 2013 at 11:18 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@Ben, Ah, so it was indeed how I vaguely remembered it to be: A direct assignment value = users.id[ i ] causes value to retain the sticky datatype of the query column. Although unnecessary in ... read »
May 24, 2013 at 9:11 AM
Preventing Links In Standalone iPhone Applications From Opening In Mobile Safari
@Brandon, Hi, No, I haven't been able to do that. I have just kept it as it is. ... read »
May 23, 2013 at 9:52 PM
Preventing Links In Standalone iPhone Applications From Opening In Mobile Safari
@Muhmmadibn Did you figure out a solution to launching PDFs? I am running into the same issues myself. There is no way to close the PDF or go back once you launch it. Thanks in advance! ... read »
May 23, 2013 at 6:06 PM
The Girl Who Broke My Heart, And Made Me A Better Person
Good day,ladies and gentle men, my name is Dr AMADI the great spell caster in Africa, i have help so many people for different kind of problems,who say there is no solution to problems on earth, that ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools