Skip to content

[Cache] Fix CacheCollectorPass with decorated cache pools #38059

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

Merged
merged 1 commit into from
Sep 4, 2020
Merged

[Cache] Fix CacheCollectorPass with decorated cache pools #38059

merged 1 commit into from
Sep 4, 2020

Conversation

shyim
Copy link
Contributor

@shyim shyim commented Sep 4, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #38055
License MIT
Doc PR

The getDefinition call in addToCollector does not work when the service is decorated. Also instances will be added with the decoration name. This looks weird in the profiler. I have changed it to prefer the attribute name.

Before:
image

After: (\Shopware\Storefront\Framework\Cache\CacheDecorator did go into cache.object)
image

@shyim shyim changed the title Fix CacheCollectorPass with decorated cache pools [Cache] Fix CacheCollectorPass with decorated cache pools Sep 4, 2020
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Sep 4, 2020
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I just have one minor comment, and good to go on my side.

@fabpot
Copy link
Member

fabpot commented Sep 4, 2020

Thank you @shyim.

@fabpot fabpot merged commit da73be8 into symfony:4.4 Sep 4, 2020
This was referenced Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants