Timed data actualisation with a multipage app

Sure, thanks for the clarification.

How are you deploying (or intend to deploy) your application? One simple solution would be to import the data in the global scope of the app and restart the service at 22pm to update the data.

Probably the best solution would be to use server-side caching, as demonstrated in this post: Show and Tell - Server Side Caching

It can be a bit more complicated to implement, but I think it is exactly what you would need. You could also consider clientside caching with dcc.Store, but then the queries are triggered for each browser session every day and the updates are not reusable across different users (contrary to the server-side version).

1 Like