Hi Nannyinthekitchen , how sad for the poor old chap. I'm not sure if this was what our cavalier was edging towards a couple of years ago but when i read up on it , it also involved cage rest for months after the surgery, only being allowed out for a quick wee.
We discussed it at length and felt for our young chap( he was about 3 at the time) it would being cruel to be kind and not something we could do. A lively young dog in every other way to be confined like that just didn't seem to be the answer.
Luckily for us , 2 weeks of enforced rest , no jumping up or pulling on the lead seemed to do the trick, even though he can yelp unexpectedly sometimes and we have to be very careful picking him up.
We're just careful now , he gets green lipped mussel extract which I've used for several years with other breeds too to good effect.
Good luck with whatever you choose.