title: Magento: need to cache and index on a server and not in another
body: <p>I have a development stage and a production stage. I would like to activate caching and indexing in production mode, and to deactivate it in development mode.</p>
  
  <p>I also use a versioning system, so it could be in a config file, if possible.</p>
  
  <p>How could I do?</p>