Which minor offences? I've been under the impression that offences punishable by caning are quite severe: robbery, rape, assault, piracy (in the actual piratical sense of violent robbery at sea) and the like.
I don't say caning is right for that either, but these are not "minor" offences. There's no fear that you could be caned for accidentally doing something like this.
Vandalism, drug abuse, illegal money-lending, 'rioting' as defined by a government that doesn't tolerate assembly..
https://en.wikipedia.org/wiki/Caning_in_Singapore#Offences_p...
There's also the problematic government support of corporal punishment for children..
There might have been implicit government support in the past, but today teachers are not allowed to hand out corporal punishment to children.
The point being, you won't be caned for small things that you could do out of a little negligence or thoughtlessness. You have to understand that you're doing something serious. (At least that has fit the description of all cases that I have read about.)
As an aside, being gay isn't illegal; acts of "gross indecency" between men are illegal.