In short, your body will tell you the answer to this.
But what I can say is that I had a problem with one of my knees, right where you say, for a couple of years all told. I cycled all the while, and did nothing about it for a long time (put it down to getting old). However I eventually went to see a physio and was very happy with the results - she prescribed a bunch of exercises to keep the muscles loose. Result was that the pain was relieved and that I didn't need to stop cycling at all.
Still comes back from time to time but I know how to deal with it now.
I know physio can be expensive but in my experience it was very worthwhile - and it only took two visits. I ended up feeling a bit of a fool for waiting so long to make an appointment.
And let's face it 10 miles is not a lot. I'm making a slight assumption about your fitness here, but you shouldn't be feeling anything after that kind of distance.