invalidate_ref_cache(): expose this function in the refs API