-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Cache a dictionary of dictionaries #15908
Cache a dictionary of dictionaries #15908
Conversation
Hi there @matthewcare, thank you for this contribution! 👍 While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution. If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Hi @matthewcare, Just spotted this one while merging #14787! 👍 Thanks for your PR to fix #15765, where specifying a culture in GetDictionaryValue overrides the culture dictionary for the rest of the request. One of the Core Collaborators team will review this as soon as possible! Best wishes Emma |
7140ec2
to
7aa06f7
Compare
d4d252e
to
3ce2e97
Compare
Re-commit change after merge
Update usings after merge
Remove the obsolete method
I made an absolute hash of updating the branch with the most recent stuff in contrib, but it should be good to go again. Just in case anyone is wondering what went on in the history there. |
Thanks @matthewcare and sorry for the delay. I'll get to testing this asap. |
Hi @matthewcare, thanks so much for your pull request to fix the issue of the wrong value showing on a cached culture dictionary, fixing #15765. I've tested the old behaviour and your fix resolves it. It has now been successfully merged! 🙌 Best wishes Emma |
Prerequisites
If there's an existing issue for this PR then this fixes
Fixes #15765
Description
The current implementation only allows for one culture dictionary to be cached at a time. This would result in the cached culture dictionary being whatever the last culture you requested was, which would have confusing results. This new implementation allows for caching all cultures.
Testing