Composer loading from cache

Solution 1:

You can use the following command to clear the cache irrespective of the OS you are on:

php composer.phar clear-cache

or if composer is installed globally

composer clear-cache

Hope this helps

Solution 2:

I think, you can run your composer commands with --no-cache option flag like

composer install --no-cache

Or

composer require <package-name> --no-cache

Or

composer update [<package-name>] --no-cache

Solution 3:

If you want to clear all packages cache, please try following:

$ composer clearcache

Or to just clear one or a few packages:

$ composer clearcache packagename1 packagename2 ...

You can also use clear-cache which is an alias for clearcache.

Source : https://blog.liplex.de/clear-composer-cache/