I have a Flask app that generates output based on a query, and gives user multiple options to do more with the output. I need to store the data somewhere between requests and the best solution I found was the multiprocessing.managers (as suggested here: Store large data or a service connection per Flask session). The app will be run on a server continuously.
My question is: after the user disconnects from the app, will the data be discarded over time? If not, how to make sure it does? I don't want to have the server maintain large amounts of data in memory forever. I don't understand very well how Flask and web development works, I hope this makes sense. Thanks.