After beeing able to render my nodes to an variable (Render node to variable - works great in general) my controller actions are becoming slower and slower (because the document is getting bigger and bigger). Until now I didn’t find a way on howto render a view using a Command Controller. This would be the most elegant way because I could use queuing services, but I tried a lot without sucess.
However, I now decided to run those background tasks after the (visible) controller results have been flushed to the user and to wait for the PDFs to become ready with a Java Script that triggers a RestController. All of this works, but I’m not able to flush the output to the user.
Ends up in a white page being flushed to the user.
Flushes only the view’s template - but not the whole page. Is there a way to inform the controller that all content should be rendered and flushed?
Thank you for your help.