It is a consensus that mining don't affect the price of bitcoin. However, mining is certainly affected by the price of bitcoin.