It’s likely the vinegar and not the cabbage that’s doing the job.
Garlic and onions are good antibiotics.
I didn't use any additional vinegar, but I add apple cider vinegar to my diet now.