Attempt fix for CacheFile not getting deleted issue as reported by Pete.