You should wash out your garbage cart with a mild soap a few times a year to prevent odors and flies.
Sprinkling baking soda inside the cart and keeping the lid closed can also help prevent odors.