-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Fix deprecation for cache.app
adapter with tags
#58830
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
Conversation
As a matter of fact when you declare a new pool with tags but without an explicit adapter it will fallback here to use This wouldn't throw the deprecation, but manually specifying that behaviour will throw the deprecation. |
cache.app
adapter with tags
Ok i'm really questioning what was the original goal here, as the tests show you can not configure the the only thing I imagine that could trigger the original issue then would be manually decorating `cache.app and I'm not sure if symfony should check this, or where to best check this, but it can not happen in the framework extension 🤔 |
We had set So yes, there is a real use case here that this solves. |
i guess i see, but that is not what was deprecated, because what was deprecated was using |
Changed the deprecation now that it checks for And now I understand also using |
Ok now apparently there are other test cases that expect that one can use cache.adapter.redis_tag_aware for cache.app 😮💨 |
Given the full context, indeed it does not. However, when you don't have the full context and are just configuring stuff in |
Closing this as the behaviour in question is covered by test, instead I've now opted for removing the deprecation as that was quite clearly wrong. see #58950 |
…apter taggable" (keulinho) This PR was merged into the 7.2 branch. Discussion ---------- [FrameworkBundle] Revert " Deprecate making `cache.app` adapter taggable" This reverts commit eed5b28. | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #58790 | License | MIT As discussed in former PR the deprecation was wrong, and trying to solve the deprecation will lead in errors. Refer to #58830 for detailed analysis. [according to the creator](#58830 (comment)) of the original issue the behaviour that is making problems is actually covered by tests, so I'm not sure how to proceed, but the deprecation is clearly wrong and should not make it to 7.2! Commits ------- 25f0925 Revert "[FrameworkBundle] Deprecate making `cache.app` adapter taggable"
…apter taggable" (keulinho) This PR was merged into the 7.2 branch. Discussion ---------- [FrameworkBundle] Revert " Deprecate making `cache.app` adapter taggable" This reverts commit eed5b284618ec95eedbc376fb140b8fc24619372. | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix symfony/symfony#58790 | License | MIT As discussed in former PR the deprecation was wrong, and trying to solve the deprecation will lead in errors. Refer to symfony/symfony#58830 for detailed analysis. [according to the creator](symfony/symfony#58830 (comment)) of the original issue the behaviour that is making problems is actually covered by tests, so I'm not sure how to proceed, but the deprecation is clearly wrong and should not make it to 7.2! Commits ------- 25f0925d9d2 Revert "[FrameworkBundle] Deprecate making `cache.app` adapter taggable"
As discussed in the issue and looking at the code and the original issues here
#54339
and
twigphp/Twig#3869
I figured that the deprecation actually never did what it intended to do.
When I use the
cache.app
adapter in a new pool together with the tags option symfony creates a new tag aware pool, howevercache.app
itself won't be taggable. The only case I see how to makeapp.cache
an instance of TagAware would be to declare that pool manually.As detailed in the issue actually using
cache.app.taggable
as adapter won't even work.@rpkamp & @alexandre-daubois maybe you could verify as you where involved in the original issues.