Previous research has shown that consuming around 500ml of tart cherry juice a few days prior to and after strenuous exercise like running a marathon or hard weight training can decrease recovery time, reduce the amount of acute strength loss normally found after fatiguing exercise, and reduce post exercise muscle soreness.
New research suggests that consuming 2 grams of raw ginger per day for 11 days will reduce post exercise muscle soreness by 25%, about the same result one may get from aspirin.
The study also looked at whether cooking the ginger would have an affect on the outcome; it didn't.
What wasn't investigated is whether or not this response is blunted over time, that is, does a person become resistant to the affect if ginger is consumed for longer periods (months instead of days).
ScienceDirect - The Journal of Pain : Ginger (Zingiber officinale) Reduces Muscle Pain Caused by Eccentric Exercise