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.
- Removes the drupal_load() static cache: it is useless because it superseeds both APC and PHP core, which already provide this. It also free some memory (a huge amount of memory when you reach 200+ modules).
-
Removes some useless
file_exists()
calls in some edge cases, those can reache theinclude_once
statement safely anyway: better to have a warning that tells a file does not exist than skipping it silentely.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1978522-1-test.patch | 1.4 KB | pounard |
Comments
Comment #1
pounardComment #3
pounardVery interesting testbot log, since all there is are warnings and no fatal errors. All happen only during the upgrade tests. This mean we can at least get rid of these checks and this infamous static cache (which happens to be useless because PHP will do it for us).
Comment #4
pounardTagging.
Comment #4.0
pounardUpdated issue summary
Comment #5
torgosPizzaFound a related issue in #1081266: Avoid re-scanning module directory when a filename or a module is missing.