-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Allow invalidateTags calls to be traced by data collector #36536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cache] Allow invalidateTags calls to be traced by data collector #36536
Conversation
if ($definition->isAbstract()) { | ||
continue; | ||
} | ||
$this->addToCollector($id, $container); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we want to collect only the decorator when there is one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, If we only collect the TagAwareAdapter, we lose the psr6 calls since the Adapter decorated by TagAwareAdapter calls these methods on itself.
src/Symfony/Component/Cache/DependencyInjection/CacheCollectorPass.php
Outdated
Show resolved
Hide resolved
Fixes #34810? |
0ed7fb2
to
28fdb3a
Compare
I haven't seen this issue, but yes, that fixes it. |
Thank you @l-vo. |
TraceableTagAwareAdapter
is not used in the fullstack framework since tag aware pools don't have thecache.pool
tag (it's the decorated adapter that has it). This PR aims to useTraceableTagAwareAdapter
when a pool is configured withtags: true