I find this to be true.
I keep potatoes in the pantry closet - dark and cool- and try to allow them not to be crowded.
I keep onions , garlic and shallots in a terracotta container with ventilation made for this purpose. It resides on the counter. Onions last quite some time in this container.