Can I move a symfony2 directory or host after caches have been created?
===

**The question:**

Are sf2 caches directory-independent? Ie: Can I do `cache:clear` in a certain dir and then move the project dir to another machine/directory without breaking the caches?

**The scenario:**

 - We have an application based on Symfony2.
 - The production machine has 500MB.
 - We currently deploy by uploading the soft and then clearing the caches.
 - In the production machine, `app/console cache:clear` lasts about 5 mins to be generated.
 - In a devel-machine with 2GB it lasts just a few seconds.

We have a requirement to minimize time-to-production. 5 mins waiting the caches is too much.


We thought about running the `cache:clear` in a local machine and then upload the product to production with the caches already generated. The local paths of the project (/home/ubuntu/devel/...) are different to the production paths (/var/www) and cannot be tuned to be the same.