Fix cache prefix matching.