Reputation: 1548
when I remove the cache it takes too much time because my cache folders are large. folder size in three days :
$ du -sh app/cache/*
2.6M app/cache/dev
46M app/cache/prod
363M app/cache/prod_old
how to speed up this process ?
Upvotes: 0
Views: 2109
Reputation: 11
I was experiencing this to the point where it would take over an hour to clear after deploying a new build - totally unacceptable.
I found that I could move the cache out first (move operations are quick), run symfony cc, then delete the cache afterwards without impacting the site.
mv app/cache/* /tmp
./symfony cc
rm -rf /tmp/*
Upvotes: 1