What age did you stop using a diaper pail?

We’re having issues with ours not containing the smell anymore but my daughter is 8 months old. Is it worth buying another one? We tried just a trash can before the diaper pail and her room smelled like poop all the time 🤢