Change record status: 
Project: 
Introduced in branch: 
7.x
Introduced in version: 
7.64
Description: 

Developers are now using automation tools to help build their websites. Tools like npm, bower, and composer create directories of files needed for the automation.

To ensure the best possible performance for extension discovery (modules, themes, etc.), Drupal now allows users to customize the directories to skip when scanning extensions through a new configuration variable: $conf['file_scan_ignore_directories']

It can be configured in the settings.php file.

By default it contains 2 directories:

  • node_modules
  • bower_components

When the user customize this list, these directories will be globally ignored in the recursive filesystem scan leading to performance improvements in some cases.

Impacts: 
Site builders, administrators, editors
Module developers
Themers
Site templates, recipes and distribution developers