The storage of pasta depends its processing and extent of drying. Uncooked pasta is kept dry and can sit in the cupboard for a year if airtight and stored in a cool, dry area. Cooked pasta is stored in the refrigerator for a maximum of 5 days in an airtight container. Adding a couple teaspoons of oil helps keep the food from sticking to itself and the container. Cooked pasta may be frozen for up to two or three months. Should the pasta be dried completely, it can be placed back in the cupboard.
Oh, Come on! Maybe the pasta is draining in a colander.