Moving module location I have a test module located under site/all/modules/custom.
First, I did uninstalled the module, cleared cache.
then , I did moved the test module to modules/custom folder which is a new
location to put Drupal 8 module.

After that, I have enabled the test module, then Clear All Caches.
Now, Drupal 8 keeps says can not find the test module under old location (site/all/modules/custom).

I thought Drupal 8 probably stored path in a DB table, but i am unable to find the table.
Can any one tell a solution about How to fix above problem?
You can do this without uninstalling, but it takes some fiddling:


Move the module in filesystem
invoke drush ev "drupal_flush_all_caches();"
invoke drush cr


The crucial setting is the entry system.module.files in key_value database table. If you move the module(s), the try to run drush cr directly, it may fail because drush tries a full bootstrap and fails to locate the required files.

drush ev does an error-free bootstrap using drush_bootstrap_max(), and drupal_flush_all_caches rebuilds system.module.files config without trying (and failing) to load the moved files. Whereas drush cr does a full-site bootstrap, which causes drush to halt on any errors.