Composer store copies of downloaded PHP packages in the cache. It allows speeding up workflow because for the next time previously installed packages can be retrieved from the cache. Can happen, that Composer don't update package to the latest version because it retrieved from the cache. This tutorial shows how to clear Composer cache.
To clear the Composer cache, specify clear-cache
argument when executing the composer
command:
composer clear-cache
The clearcache
and cc
arguments are an alias for clear-cache
.
composer clearcache
composer cc
Leave a Comment
Cancel reply