We initially set up a cron to delete the corrupt files created by the script - but that's hardly a solution as the site could go down before the cron kicks in, and be down until it does (we had it checking every 5 mins to be safe...but still...)
So here's a simple, better solution. Here's hoping the devs will include it in their next update. I just checked the 9.9.5 release and nope, problem still there. So here's what you need to do:
In libs/ez_sql_core.php - find:
Code:
if ( (time() - filemtime($cache_file)) > ($this->cache_timeout*3600) )
and replace it with:
Code:
if ( (time() - filemtime($cache_file)) > ($this->cache_timeout*3600) || (filesize($cache_file) > 2000000) )
This will delete the file if it's over 2MB and recreate it - thus no server crashing, and no need for a cron job.