Updating composer autoloader after moving modules I have been using composer to install all Drupal modules, when I realized that they had not been installing to modules/contrib. So, I added this into my composer file:
&quot;installer-paths&quot;: {
  &quot;modules/contrib/{$name}&quot;: [&quot;type:drupal-module&quot;]
}

Then, I moved all modules to /contrib under the modules directory, and rebuilt my cache with drush cr. No errors.
Now I cannot reload the site, I am getting fatal errors about missing modules at their old paths.
How do I clear the autoloader so it gets updated to look in modules/contrib instead of just modules for class files?
Attached picture of the error.
I tried removing the composer.lock file and running composer update - no dice.
Update
Looks like I did everything right, I just needed to reboot the VM to clear the APC cache.
Is there a way I could do that from command line instead of reboot the server?
I am using this to refresh module paths. I tried all other combos with apc_clear_cache etc and didnt help, also nginx restart didnt help, this 2 did.

service php7.2-fpm restart 
drush cr