better way of tracking what caches need to be uploaded; fixes #13270