-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
IUserTimeZoneService no longer caches user requests #16932
Comments
Remembers me something I had fixed once. |
We need to remove the cache from the |
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues). This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here. |
@deanmarcussen I suggest you watch today's meeting when it's available, we review the latest PR. My suggestion is to remove this service and put whatever it does (caching) in |
@sebastienros additionally, removing the |
this pr #16614 has made some changes to how the users time zones are cached which makes the cache useless.
this code in
UserTimeZoneSelector
now retrieves the current user on every request, before trying to get a timezone for the user.(or in fact if a timezone calcation is done more than once on a page, which is a common usage, then it queries for the user multiple times)
the previous arrangement where
UserTimeZoneService
held the cache for the database query to lookup the user (to get their timezone) was a useful cache. Now it's irrelevant, because the componet calling into that cache is doing all the work.The text was updated successfully, but these errors were encountered: