I suggest you do a web search for 'figging'. This was a practice where a ginger suppository was inserted in the anus immediately before a caning or a whipping. It was mentioned frequently in older cp (corporal punishment) books. There are also cases when it was inserted into the vagina, or both.