[server] enable repo_id cache support in cmake