How can set_transient/ get_transient stop working after working correctly for months?

I have used set_transient for months and it stopped working with the following symptoms.

if you do set_transient & get_transient on the same page view, it works. If you then comment out set_transient and do another page view, it is no longer working.

How can I diagnose the problem & fix it?