Definitely number 1. Since that is when the yeast is most active, temperature is most important at this stage. In my experience, the beer is about 95% fermented by the time it goes into secondary. It is during the active fermentation where outside factors can affect the yeast, causing the production of undesirables in your beer.