I think if you just implement the disk cache callback, it'll automatically enable the shader cache for the GLSL compiler.