Skip to content

Missing cache data in profiler #59838

@dcmbrs

Description

@dcmbrs

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions