Multipage and background data refresh with dcc.Interval

Hello everyone, I am migrating an application made in Dash on a single page, my current application has the following structure:

app.py		<< dcc.Interval (every 60 seconds update df1, df2 y df3 from a DB) 
-- df1
-- df2
-- df3

Every 60 seconds a series of dataframes from a database are updated and those dataframes are displayed on the main page with Plotly/Dash.

Now, I want to migrate to a new multipage application with the following structure:

app.py (home)	<< dcc.Interval (every 60 seconds update df1, df2 y df3 from a DB)
|______	pages
	|______	page1 	<< df1
	|______	page2	<< df2
	|______	page3	<< df3

Would this be the most efficient option to do it?
Does dcc.Interval still run in app.py even if another page (page1 for example) is selected.

Thanks a lot.

Yes - that should work :slightly_smiling_face:

Thank you very much for answering, I was just checking that it works correctly…

A new question:

I have seen that there are multiple examples to share data (pandas df) between different pages:
Is it more optimal to share these dataframes through dcc.Store, as global variables or is it indifferent?

Thanks again.