Skip to content
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 response from /api/user_photo #443

Open
anders-kiaer opened this issue Oct 24, 2023 · 0 comments
Open

Cache response from /api/user_photo #443

anders-kiaer opened this issue Oct 24, 2023 · 0 comments

Comments

@anders-kiaer
Copy link
Collaborator

anders-kiaer commented Oct 24, 2023

Every time the user visits webviz application + open the ensemble dialog box, there are multiple requests towards /api/user_photo, one for each unique user in the case list (which takes some time to complete). Each user photo can be several MB in size also.

We can probably cache the response from this endpoint quite aggresively (order of days/couple of weeks?). Having a stale/outdated user profile for some time is no big issue (it also very rarely change - many years on average between user photo changes), compared to the upside of having faster rendering in client + fewer API requests to be handled by primary backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant