-Fixes issues #230 - a serious bug that will cause disk to fill up whenever a cache file is generated.