Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #30907 [Serializer] Respect ignored attributes in cache key of no…
…rmalizer (dbu) This PR was squashed before being merged into the 3.4 branch (closes #30907). Discussion ---------- [Serializer] Respect ignored attributes in cache key of normalizer EUFOSSA | Q | A | ------------- | --- | Branch | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Do not share the attributes cache in object normalizer when using a different setting for the ignoredAttributes setting. In Symfony 4.2, the setter is deprecated in favor of the ignored_attibutes option in the $context. When merging this up, we will however still need to respect the field as well for BC, the cache key does not look at the default context (apart from the deprecated modifiers, the default context is immutable) There might be performance regression for some use cases, but also could be a performance improvement when using 'attributes' in the context with lists of objects of the same class. Commits ------- 926d228 [Serializer] Respect ignored attributes in cache key of normalizer
- Loading branch information
Showing
3 changed files
with
53 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters