Flushes currently available output to the client. During each page request the generated output is stored in a buffer until the page is completely processed. Calling the <cfflush> tag will flush the current contents of the buffer. NOTE: After calling the <cfflush> tag you will not longer be able to call some tags that modify the buffer (ex: cflocation, cfhtmlhead).
Other
<cfflush [interval="number"]/>
[] = Optional attribute
| Name | Type | Required | Default | Description |
| interval | number | No | Flush the output each time at least the specified number of bytes become available. HTML headers, and any data already available when you make this call, are not included in the count. |
Example 1:
<cfflush interval="10"> <cfloop from="1" to="20" index="i"> <div> Testing the flush! </div> <cfsleep time="700"> </cfloop>
Example 2:
<cfflush interval="10"> <cfloop from="1" to="5" index="i"> <div> Testing the flush! </div> <cfsleep time="700"> </cfloop> <cfhtmlhead text="Can't do this!">