Railo
  1. Railo
  2. RAILO-2157

Allow suppressed buffering cffunction and cfcomponent tags

    Details

    • Type: Feature Request Feature Request
    • Status: Resolved Resolved (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 4.0.1.006
    • Fix Version/s: 4.1.0.000
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      From what I understand if you add output="false" to a cfcomponent or cffunction tag, it still buffers the output generated from the function, it just throws it away at the end. (maybe I am wrong). It always reminded me of how the cfsilent tag works. In Railo, you can add the bufferOutput="false" attribute to the cfsilent tag that will suppress the output completely. The downfall is, you can't do any dump-abort type debugging inside the tag. I have seen a performance improvement with using cfsilent bufferoutput="false" and it got me thinking...it might be nice to have an administrator setting (maybe called, "buffer cffunction/cfcomponent tag output") that treats output="false" kind of like cfsilent's bufferOutput="false" so there is no buffering inside cfcomponent and cffunction tags (if output="false"). the setting set to true would be the cfml standard, but the performance junkies can turn it off for an extra boost. Maybe the boost is negligible. I don't know.

      (michael offner says)
      we should also support the same in the application.cfc, something like:
      this.silentbuffer=false:

        Activity

        Hide
        Michael Offner
        added a comment -

        we have add support for the attribute "bufferOutput" to <cffunction> and script:function.
        then we have add support for "bufferOutput" to the application.cfc and <cfapplication> to define the default behavior for cfsilent and cffunction. then we have add the same setting to the railo admin.

        Show
        Michael Offner
        added a comment - we have add support for the attribute "bufferOutput" to <cffunction> and script:function. then we have add support for "bufferOutput" to the application.cfc and <cfapplication> to define the default behavior for cfsilent and cffunction. then we have add the same setting to the railo admin.
        Hide
        Michael Offner
        added a comment -

        testcase attached

        Show
        Michael Offner
        added a comment - testcase attached
        Show
        Michael Offner
        added a comment - tnx for input https://github.com/getrailo/railo/commit/7e96166f2e15292a350af6d2bb734fd64546087e https://github.com/getrailo/railo/commit/0eda3461c6b6fd01ae2253980244a11b98f1058f

          People

          • Assignee:
            Michael Offner
            Reporter:
            Colby Litnak
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: