RPG XP How to Disable F12 Soft-Reset

Hello,

I have been trying to figure out how I could go about disabling the F12 soft-reset in my game. Mostly because whenever you soft-reset certain bugs will occur, and it's due to the game's cache not being wiped upon soft-reseting. I tried searching throughout all of my scripts but couldn't find where it was that I could disable it from. If anyone has an idea, feel free to let me know
This will require a script - and Tutorials is for presenting tutorials you wrote, not for asking questions.
Moved to: XP script request
http://lmgtfy.com/?q=rmxp+disable+f12

Third link down: http://save-point.org/thread-2477.html

Original thread: https://forums.rpgmakerweb.com/threads/rpg-xp-how-to-disable-f12-soft-reset.79948/