It's not possible to clear the cache of my symfony2 application. The PdfBundle internally uses some zf_cache with www-data rights (the user linux uses when you run your application in the browser.
In the console, you run the app/console with another user who is not able to delete the folder:
So it's not possible to delete the cache folder:
[UnexpectedValueException]
FilesystemIterator::__construct(/app/cache/dev_old/zfcache-fa): failed to open dir: Permission denied