Fix cache interface mismatch

When compiling with cache disabled this mismatch can cause compilers giving up.