[FIX] bundle set_cache(): ensure prefix search correctness