title: ColdFusion 11 cfflush tag not working correctly?
body: <p>Anyone having issues with the cfflush tag in ColdFusion 11? We have a routine that updates a live record count as it is processing a loop. In ColdFusion 10, this works fine. In ColdFusion 11, it waits until the end of the loop to update the screen. Not really what we expected.</p>
  
  <p>Edited to add code as requested...</p>
  
  <pre><code>&lt;script language="javascript"&gt;
      addOutputLine('&lt;br /&gt;&lt;span id="insertCount"&gt;Records Inserted: 0&lt;/span&gt;')
  &lt;/script&gt;
  &lt;cfset insertCount = 0&gt;
  &lt;cfset updateCountAfter = 1&gt;
  &lt;cfif qry.recordcount gt 5000&gt;
      &lt;cfset updateCountAfter = 10&gt;
  &lt;/cfif&gt;
  
  &lt;cfoutput query="qry" startrow="#DATASTART#"&gt;
      &lt;!---do some stuff here that is not important to this issue---&gt;
  
      &lt;cfset insertCount = insertCount + 1&gt;
      &lt;cfif updateCountAfter gt 1&gt;
          &lt;cfif insertCount mod updateCountAfter eq 0&gt;
              &lt;script language="javascript"&gt;document.getElementById('insertCount').innerHTML = 'Records Inserted: #insertCount#';&lt;/script&gt;    
          &lt;/cfif&gt; 
      &lt;cfelse&gt;
           &lt;script language="javascript"&gt;document.getElementById('insertCount').innerHTML = 'Records Inserted: #insertCount#';&lt;/script&gt;
      &lt;/cfif&gt;
  
      &lt;cfflush&gt;
  
  &lt;/cfoutput&gt;
  </code></pre>