Question about bufferOutput

103 views
Skip to first unread message

Raymond Camden

unread,
Oct 1, 2015, 9:09:53 AM10/1/15
to Lucee
Can someone explain bufferOutput? It seems to imply that if false, output that would have been sent before an exception is thrown away. but im not seeing that. My test was this:

<cfscript>
    x = 1;
    writeoutput("<p>Buffer?</p>");
    writeoutput(y);
</cfscript>



Harry Klein

unread,
Oct 1, 2015, 10:18:46 AM10/1/15
to Lucee

Hi Ray,

 

I never used this setting, but found these link:

https://luceeserver.atlassian.net/browse/LDEV-235

(doc: http://docs.lucee.org/reference/tags/function.html)

 

Colby wrote:

„ … With this.bufferOutput=false coupled with this new lucee server compiler setting, my app's memory usage went down while performance went up. ...

 

I have to try this out.

 

-Harry

--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/b723d50d-957d-45af-aa69-37b387f0cb75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gert Franz

unread,
Oct 1, 2015, 10:20:39 AM10/1/15
to lu...@googlegroups.com
Hey Ray,

This is for the tag CFSILENT and functions that have the attribute OUTPUT set to false. If there is an error our abort inside the function or the silent tag and the setting bufferoutput is set to true any generated output will bee visible. If set to false it will not generate any output at all. This is especially good for the memory consumption...

Gert

Sent from somewhere on the road

Gert Franz

unread,
Oct 1, 2015, 10:21:41 AM10/1/15
to lu...@googlegroups.com
Sorry, forgot to mention that not only in case of an abort, but in case of an exception as well.

Gert

Sent from somewhere on the road

Am 01.10.2015 um 15:09 schrieb Raymond Camden <raymon...@gmail.com>:

Raymond Camden

unread,
Oct 1, 2015, 10:22:17 AM10/1/15
to lu...@googlegroups.com
Thanks Gert/Harry.
> You received this message because you are subscribed to a topic in the
> Google Groups "Lucee" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/lucee/iQf1TbyWq0o/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> lucee+un...@googlegroups.com.
> To post to this group, send email to lu...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/lucee/70AB469A-3607-4864-971A-455E3F29C479%40rasia.ch.
>
> For more options, visit https://groups.google.com/d/optout.



--
===========================================================================
Raymond Camden, Developer Advocate for MobileFirst at IBM

Email : raymon...@gmail.com
Blog : www.raymondcamden.com
Twitter: raymondcamden

Gert Franz

unread,
Oct 1, 2015, 10:25:28 AM10/1/15
to lu...@googlegroups.com
Another addition, as far as i remember, originally cfsilent back in the Railo days never produced output until we found out that you (Ray) were using this side effect in BlogCFC :)

Gert

Sent from somewhere on the road

Julian Halliwell

unread,
Oct 1, 2015, 11:56:35 AM10/1/15
to lu...@googlegroups.com
Hi Gert,

So setting this.bufferOutput=false in application.cfc overrides the
default true value for bufferOutput in these two tags <cfsilent> and
<cffunction output="false">. Is that right?

Does it have any effect on other code, e.g. output generated in script?

The description in the Lucee Administrator > Output section isn't
terribly clear. It doesn't say it's just for cfsilent/cffunction.

"Buffer Tag Body Output: If true - the output written to the body of
the tag is buffered and is also outputted in case of an exception.
Otherwise the content to body is ignored and not displayed when a
failure occurs in the body of the tag."

Cheers
Julian.

Gert Franz

unread,
Oct 1, 2015, 12:04:54 PM10/1/15
to lu...@googlegroups.com
Yes that is correct. The documentation in the admin is i guess copied from the attribute bufferOutput of the tag cfsilent. Unfortunate...

It had no affect I anything else and you can override the setting with each cfsilent tag. Remember something like this:

<cfdump eval=something abort> will not output anything at all.

Gert

Sent from somewhere on the road

> --
> See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW - http://www.cfcamp.org/
> ---
> You received this message because you are subscribed to the Google Groups "Lucee" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
> To post to this group, send email to lu...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAC_5VorvURT6gcE-sni9WMf-SmjAzyDMjO3KvxEiWjXS0zRNhQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages