Once you've served dinner, leftover spaghetti sauce should be refrigerated promptly. Food should not sit out at room temperature longer than 2 hours.