title: Symfony2, How to change environment?
body: <p>I have read a lot about the clear cache command for symfony2, but I have this question : </p>
  
  <p>Is <code>php app/console cache:clear --env=prod</code> with <code>--env</code>, changes the environment or just clean the cache for that environment?</p>
  
  <p>If only clear the cache for that environment, then what is this line mean in app.php :</p>
  
  <pre><code>$kernel = new AppKernel('prod', false); 
  </code></pre>
  
  <p>I think when I want to use Symfony2 Production Environment I have to change that line to </p>
  
  <pre><code>$kernel = new AppKernel('prod', true);
  </code></pre>
  
  <p>Am I in the right spot? </p>