Stop bottle from caching files
It works fine most of the time. However, when I make modifications to the pages it regularly fails to reload the files.
Sometimes the caching appears to persist even when I kill Pythonista and restart.
bottleI am doing so with:
bottle.TEMPLATES.clear() run (host='localhost', port=8088, debug=True, quiet=False)
The debug code clearly shows that it is not reloading the files that I have changed.
I've tried serving the files with both
templatebut it makes no difference.
I've executed the same code on my PC and it clearly picks up the modified files.
Is there a way I can stop
bottledoing any sort of caching? Or is there some kind of Pythonista bug here?
My suspicion is that I have a old process of bottle running that refuses to die. I will try a hard reset of my Ipad.
I'm almost at the point of installing my own version of
bottleand hacking the code to stop it from caching.
All help greatly appreciated!
Very strange. Even a hard reset wouldn't resolve the issue.
However, when I changed the port to a new one. It reloaded all the files and worked!