Playing the game for over an hour causes a crash to desktop

So our game releases next week, and we've noticed a problem if a player attempts to play the game in one sitting (which should be pretty rare), basically the game crashes for no reason if you play for what seems to be over an hour or so (this is a speed-run). It doesn't always happen, but it's very strange and doesn't seem to be caused by doing one thing specifically.


So what I'm asking is whether there is a command (either script or plugin based) that would allow us to clear the cache (we are using TDDPs plugin) to maybe free up some memory and allow the game to reload what it needs.
search the forum for memory leak - there is an inofficial user-made bugfix that will be included in the next update, but you can use it as it is linked in several of those discussions.


It won't do anything for plugins that have memory leaks, but it should improve the situation for your game.
Well, for cache there is this plugin: 




But your problem seems to be more than just cache, more than likely the remaining memory leak... so I'll link this: 
Thank you for your super quick answers ... I already had the memory leak plugin patched in, but have added the Shaz cache manager too in the hope that it will help out.
As an update, I have updated to rpg maker 1.3.2 (the one that was released this morning) and the crash still occurs. It seems to happen at the moment of a player transfer to a new map, and therefore is definitely "the game" being overloaded. 


Does anyone know any script commands to manually flush cache? Either using TDDP or Shaz's scripts?
did you update your project too or just the editor?
Thanks @Waterguy, I updated the project too.

Original thread: https://forums.rpgmakerweb.com/threads/playing-the-game-for-over-an-hour-causes-a-crash-to-desktop.69821/