refs: record the ref_store in ref_cache, not ref_dir