-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Caching: Fixes regression of the caching of null representations for missing dictionary items (closes #20336 for 16) #20349
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
Caching: Fixes regression of the caching of null representations for missing dictionary items (closes #20336 for 16) #20349
Conversation
…ssing dictionary items.
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.
Pull Request Overview
This PR fixes a regression in dictionary item caching where null representations for missing dictionary items were not being cached properly. The fix ensures that null values can be cached and retrieved correctly using a special null representation constant.
- Refactors cache item retrieval logic to properly handle null representations
- Adds comprehensive test coverage for dictionary repository caching behavior
- Introduces helper methods to distinguish between actual nulls and cached null representations
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Persistence/Repositories/DictionaryRepositoryTest.cs | Adds extensive test coverage for dictionary repository caching scenarios with both existing and non-existing values |
| src/Umbraco.Core/Cache/AppCacheExtensions.cs | Refactors cache retrieval logic to properly handle null representations and distinguish between actual nulls and cached nulls |
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.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
|
This pull request has been mentioned on Umbraco community forum. There might be relevant details there: https://forum.umbraco.com/t/website-significantly-slower-since-upgrading-from-v13-to-v16/6049/9 |
kjac
left a comment
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.
💪
…missing dictionary items (closes #20336 for 16) (#20349) * Ports fix to regression of the caching of null representations for missing dictionary items. * Fixed error raised in code review. --------- Co-authored-by: Kenn Jacobsen <[email protected]>
Ports #20344 for Umbraco 16.