Here is a decent post on the potential correlation of solar sun spots to long term climate cycles.
The reader is reminded that correlation does not equal causation.
However, a lack of correlation usually suggests no causation. I will leave it up to readers to look at comparable charts of CO2 versus temperature and arrive at their own conclusions. about where that gas is warming out global temperature.