Closed
Description
Symfony version(s) affected
5.4.x
Description
When we stream response (Symfony\Component\HttpFoundation\StreamedResponse
) and use cache in streamed response callback, we don't see this cache used in profiler
How to reproduce
Demo run on this project https://github.com/dcmbrs/cache-stream-profiler and follow up readme on master branch
Possible Solution
Fix Data method lateCollect
in Symfony\Component\Cache\DataCollector
Additional Context
In general, the problem seems to occur with everything that happens once the 'kernel.response' event has passed.