update the cachefile automatically