Hi,
It's unclear which cache you are talking about.
There are debug features which allow you to turn off L2 and branch predictor etc for certain platforms, but it really depends on the platform itself as to what is supported.
Use the cmake configuration ui (cd build && ccmake ..) to see the available config options.
Cheers,
Anna.