Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy 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
Uh oh!
There was an error while loading.Please reload this page.
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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
nicolas-grekas commentedApr 23, 2020
Fixes#34810? |
0ed7fb2 to28fdb3aComparel-vo commentedApr 24, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I haven't seen this issue, but yes, that fixes it. |
nicolas-grekas commentedApr 26, 2020
Thank you@l-vo. |
Uh oh!
There was an error while loading.Please reload this page.
TraceableTagAwareAdapteris not used in the fullstack framework since tag aware pools don't have thecache.pooltag (it's the decorated adapter that has it). This PR aims to useTraceableTagAwareAdapterwhen a pool is configured withtags: true