Re-added missing chache.json
Added cache.json to ignore file
Added safety/backup saving on failed saving.