title: How to correctly invalidate cache on production for Symfony2 application?
body: <p>I changed the configuration of the application and deployed the new code to production server. Since the application does not parse the configuration files and use precompiled classes I needed to update the cache files.</p>
  
  <p>There is <code>app/console cache:warmup</code> and <code>app/console cache:clear</code> commands. But the cache wasn't updated after invoking these commands, so I had to delete the app/cache folder manually.</p>
  
  <p>Manual deletion is very dangerous operation because it's not atomic so I can remove part of cache during request and this may lead to fatal error.</p>
  
  <p>How should I reload cache?</p>