Hi everyone,

I am trying to improve the performance of an API I provide to other
systems. Requests that post data to my application now have to wait
for my processing to finish (parsing, saving model-data...) before
they see a simple "All OK" response.

Since the processing is governed by the controller I thought that I
could echo the response and then flush the buffers and never render
any final view for these actions. But... I can get it to work. I have
tried many combinations of ob_* calls and flushes, following both old
code I have used for outputting images and a few examples and hits
found online and at php.net.

Maybe flushing is not enough? I am a bit lost here. Has anyone got any
example to share where they can let the browser (or other script) see
the results before all processing is complete?



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to