Forums

Restarting Cache and Website State

Hello, quick question for anyone familiar w/ Flask.

I'm currently making a parser for the battlefy website to quickly pull results and convert them to wikicode.

Example of it in action: https://i.imgur.com/1lj98cP.png

app.py: https://pastebin.com/J2nsfmFa

My question is, every time I submit without restarting the webpage, the new results just display among the old results. Is there a module I can use to clear the cache and reset the state of the website without having to entirely reload every time I submit a new URL to be parsed? Thanks for any help you can give.

Could you describe step by step scenario you want to implement?