At my grammar school, if a boy was caned, a notice would be placed on the notice board outside the headmaster's study: "M Smith has been beaten for smoking" or whatever.
It was rare at my school (local-authority grammar, mixed, mid-1960s) and discreet, so if word went round it was by the recipient and play-ground gossip. I heard of no more than about 3 or 4 canings in the 7 years I was there. There may have been more but not to my knowledge. If it was a deterrent, it was by unspoken threat!
Being rarer would make it more embarrassing for the boy who was caned. At my school, I doubt anyone would have taken much notice of the announcement as it was such a common event.