Overview Module Function Class I*Tea 3.6.8 Reference Documentation© 2013 PDM&FC

Function itea-flush

itea-flush

Flushes buffered output back to the client.

Useful to split a large response into smaller chunks (and minimize usage of buffer output memory), or to flush progress report messages for operations which take a long time while keeping the connection open.

If there is a communication error with client, it will throw an error and interrupt processing of the code.

Once this function is used, any further use of the functions which modify response headers ( itea-redirect, itea-redirect-abs, itea-set-content-type, itea-set-file-name, itea-cookie-set-raw, and other which may depend on these) will not have any effect, as response headers are only sent in the first flush. As a direct consequence, if a processing error occurs after an itea-flush, I*Tea cannot redirect the client to the error page. (So, the processing error will be logged, but the client will receive the output up to the point where the error is generated, and no further output.)

Since: 3.5.6

Overview Module Function Class ${tea.teadoc.header}
Report a bug or request new features
© 2013