1. Your symptoms of recurring episodes of pain/ swelling in foot and ankle with +/- involvement of great toe is usually because of gout
. Usually gouty arthritis
resolves say within 10 days of NSAID's. Since you are suffering for nearly 2-3 weeks with recurring episodes, better you check your S.Uric acid level and start treatment for gout if present.
2. Diet modification with restriction of high protein diet - meat/chicken, dal / pulses is good. Alcohol intake also raises your uric acid level in blood.
3. During episodes of attack, NSAID's + diet modification + ice fomentation/crepe bandage will alleviate your problem.
4. The second part of your question regarding your tendon pull is unclear - Achilles tendon rupture? - If it is that there are better surgical techniques to repair it with minimal complications even though the post-op risk for infection and wound gapping is higher compared to other tendon injury