hhoops advice is v sensible. I know several people with type 1 diabetes who cave and climb serious mountains successfully. Critically, they all have good blood sugar control and a good understanding of their condition. If they don't satisfy both criteria, steer them towards another sport.
On UK trips, the biggest danger is hypoglycaemia (low blood sugar). Provided the caver recognises the early symptoms, and carries a ready source of sucrose/glucose, this can be averted. High blood sugar (and high blood ketones) will rarely be a problem on 'short' trips. As a rough guide, if you can manage a decent hill walk without trouble, you can probably manage to go caving.
Hypothermia is potentially problematic: distinguishing the symptoms of early hypothermia from hypoglycaemia can be difficult (and one can lead to or complicate the other). Pragmatically, the assumption should be that a muddled diabetic is hypoglycaemic (so give sugar) but, if they don't recover swiftly, assume they're also hypothermic.
Blood sugar control on long trips is much more complex - recommend building up very slowly!