Had cellulitis over a week ago was treated but skin is still tender on leg. All else good. Is the infection gone? I can't risk getting ill again

Need to examine. There is insufficient information to provide a meaningful opinion. It would be prudent to consult your doctor who knows your history and could examine you. Two general issues; if you are overweight, try hard to lose weight; if you are diabetic, keep tight control of blood sugar.