Get rid of food moths II
In addition to the measures already mentioned by others, it should be noted that the moths like to lay their eggs under the "margins" of screw caps. Whether honey jar or ketchup bottle. So: Dispose of these supposedly moth-proof vessels better.
When cleaning moth-infested cabinets, it is important to clean the holes for the shelf supports, as moth eggs are often stored there. I do this with alcohol-dipped cotton swabs.