We have a bunch of cacao trees on our
land. Without sunlight during most of the day they don't grow mature fruit. Their trunks turn a somewhat whitish color by themselves which seems to protect from the intensity of the sunlight here (at 1200 meter above sea level close to the equator). They're slow growing, it takes 3 to 4 years for them to grow to about 1.5 or 2 meters high, some plants take even longer) which is when they start flowering.
I have no idea if the cacao trees described in "old world forestry" are somehow differently from ours... When we planted our first cacao trees we also picked shaded spots because we heard the same thing over and over again, that they are shade loving trees. See picture below. We ended up opening the canopy after our neighbors told us that they won't bear fruit unless they get full sun. They were right...