symfony/symfony — Issue #3250: unwanted behaviour: cache warmup does assetic dump. plea for option to disable this
Author: chrisben
Created: 2012-02-02 09:14:30+00:00
State: open

When I use cache clear with warm up on my production environment, like this:
```/app/console cache:clear --env=prod --no-debug
```

I see that it is also performing an assetic dump, which is an unnecessary and undesired behaviour because:
- I just don't have java on my production environment (used for js/css compressors), after all it is not a requirement to run symfony2 from what I know: http://symfony.com/doc/2.0/reference/requirements.html
- it is a slow process, I want my cache to be cleaned + warmed up pretty quickly for my site to be up and running asap
- I only want to call it from my development environment where I can control its output, then deploy its output files to production

For now I use rm -rf app/cache/prod/*, but that would be much better to be able to use app/console for it and get the template cache warming done for me!

I suggest adding a **-no-assetic-dump** option to the cache:clear console command, so that it doesn't break backward compatibility.

The same issue had already been raised there:
http://groups.google.com/group/symfony2/browse_thread/thread/7596b49947c6e70f