Question about bufferOutput

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:

x = 1; writeoutput("

Buffer?

"); writeoutput(y);

Hi Ray,

I never used this setting, but found these link:
https://luceeserver.atlassian.net/browse/LDEV-235
(doc: <cffunction> :: Lucee Documentation)

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.

-HarryVon: lucee@googlegroups.com [mailto:lucee@googlegroups.com] Im Auftrag von Raymond Camden
Gesendet: Donnerstag, 1. Oktober 2015 15:10
An: Lucee lucee@googlegroups.com
Betreff: [Lucee] Question about bufferOutput

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:

x = 1; writeoutput("

Buffer?

"); writeoutput(y);


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+unsubscribe@googlegroups.commailto:lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.commailto:lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/b723d50d-957d-45af-aa69-37b387f0cb75%40googlegroups.comhttps://groups.google.com/d/msgid/lucee/b723d50d-957d-45af-aa69-37b387f0cb75%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.

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 :slight_smile:

GertSent from somewhere on the road

Am 01.10.2015 um 16:18 schrieb Harry Klein <@Harry_Klein>:

Hi Ray,

I never used this setting, but found these link:
[LDEV-235] - Lucee
(doc: <cffunction> :: Lucee Documentation)

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

Von: lucee@googlegroups.com [mailto:lucee@googlegroups.com] Im Auftrag von Raymond Camden
Gesendet: Donnerstag, 1. Oktober 2015 15:10
An: Lucee lucee@googlegroups.com
Betreff: [Lucee] Question about bufferOutput

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:

x = 1; writeoutput("

Buffer?

"); writeoutput(y);


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+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@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.

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+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/F5A941E045A6FE4288ABB2E3D797146FA73E2983%40SRV-DC1.contens.local.
For more options, visit https://groups.google.com/d/optout.

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…

GertSent from somewhere on the road

Am 01.10.2015 um 15:09 schrieb Raymond Camden <@Raymond_Camden>:

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:

x = 1; writeoutput("

Buffer?

"); writeoutput(y);


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+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@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.

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:

will not output anything at all.

GertSent from somewhere on the road

Am 01.10.2015 um 17:56 schrieb Julian Halliwell <@Julian_Halliwell>:

Hi Gert,

So setting this.bufferOutput=false in application.cfc overrides the
default true value for bufferOutput in these two tags and
. 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.

On 1 October 2015 at 15:20, Gert Franz <@Gert_Franz> wrote:
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…


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+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAC_5VorvURT6gcE-sni9WMf-SmjAzyDMjO3KvxEiWjXS0zRNhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Hi Gert,

So setting this.bufferOutput=false in application.cfc overrides the
default true value for bufferOutput in these two tags and
. 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.On 1 October 2015 at 15:20, Gert Franz <@Gert_Franz> wrote:

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…

Sorry, forgot to mention that not only in case of an abort, but in case of an exception as well.

GertSent from somewhere on the road

Am 01.10.2015 um 15:09 schrieb Raymond Camden <@Raymond_Camden>:

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:

x = 1; writeoutput("

Buffer?

"); writeoutput(y);


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+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@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.