alcalyn/flush-on-kernel-terminate-bundle (packagist): Just add a listener to automatically flush non-flushed entities after the response has been sent.
Keywords: Symfony2|optimization