Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This module causes a file_scan_directory on each page load. It should cache the results of a file_scan_directory (indefinitely preferably). Doing a file scan is problematic (slow) for sites with a large number of files and exacerbated when servers are pulling files over an NFS or any remote file system.
Simply wrapping the code with a cache_get/cache_set routine resolves the issue.
Comments
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedThis seems like a great performance improvement.