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

Updated interventions/regions not loaded in UI #36

Open
steven-cd opened this issue Apr 1, 2021 · 1 comment
Open

Updated interventions/regions not loaded in UI #36

steven-cd opened this issue Apr 1, 2021 · 1 comment

Comments

@steven-cd
Copy link
Member

The lists of interventions and regions are cached in web-ui/pages/simulations/new.tsx for "the life of the server process". This means that if the database is updated (e.g. by script/fetch-recorded-data), the new interventions don't actually appear. I've only been reliably able to update it by restarting the container. I suspect this is something that worked without issue when the UI was hosted on Vercel, and therefore serverless, but not now we have a persistent container. It would also be worth looking to see if other pages do similar things.

@steven-cd
Copy link
Member Author

Discussed that the data being cached is likely not to be that big, and so simplest fix to try first is to remove the cache and see if there is any major impact. Failing that, can try to cache for a fixed period of time

@steven-cd steven-cd transferred this issue from another repository May 5, 2022
@steven-cd steven-cd transferred this issue from another repository May 5, 2022
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