Streamlit App Resetting After a Few Minutes

Currently, I have a data dashboard (source code) for users to access, filter, graph, and download a certain dataset. Overall, it works fine, but it was recently brought to my attention that after using it for a few minutes, it will simply reset.

For context here is the flow of the app:
Download raw data form (once submitted it will get the raw data specified) → filtering options (once the raw data is downloaded users can apply additional filters) + graphs / visualization / downloading files view

Essentially what happens is that after a few minutes, the raw data that was stored is somehow reset and the app goes back to just showing the initial form and none of the filtering options.

I’ve done some digging in the forum and I’m not sure if this is related to the web socket connection resetting or if its an issue with my workflow.

Any guidance or suggestions on this would be much appreciated.

Hi @Piphi5, welcome to the Streamlit community!

I would guess it would be a lack of caching here:

It could also be the case that you are just exceeding the limits provided by the free tier. In that case, the container would restart, which sounds like it matches your description of the the filters being reset.



i have the same problem deco every 10-15 minutes
@randyzwitch can you explain a little more pls i dont understand the point around the cache ?