I have a large cedar lined closet which is so deep that there was a lot of wasted space so I moved the clothes rod toward the door and built shelves behind to use as a pantry. I have had NO bugs in anything since I started using this to store flour, rice, pasta, etc. in there. (I have been using the closet now for a couple of years.) I was thinking if you had a piece of cedar you could put on your cupboard shelves this might solve your problem. ... View related article.