I went to a private school in the 1980s that had the cane. This seemed to be the default punishment for anything from running in the corridor, to being caught smoking or fighting. Obviously this was meant as a deterrent, but failed to take into account playground politics: How often you got caned, was a badge of how 'hard' you were.
What seemed utterly unjust to me was the policy of mass caning, i.e. if a teacher could smell smoke, and couldn't identify the culprit, the entire class got caned. No individual evidence needed. When you joined, your parents had signed a release allowing them to do this. So even if you were a complete goody two-shoes, you could still get caned for literally no reason (and possibly develop permanent nerve damage, tough shit)