MDL-42012 cache: Valid definitions are required even when disabled