Method 1
rm -rf app/cache/*
Method 2
app/console cache:clear --env=prod
app/console cache:clear
not only deletes the cache, but produces the new one.
It is the same as:
rm -rf app/cache/* && app/console cache:warmup --env prod
rm -rf app/cache/*
app/console cache:clear --env=prod
app/console cache:clear
not only deletes the cache, but produces the new one.
It is the same as:
rm -rf app/cache/* && app/console cache:warmup --env prod