Generally ice for acute flare-ups, then heat before performing exercises. Alternate as needed for pain relief based on your stage of injury.