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.
Cache the libraries directory so that the file system doesn't have to be scanned on each page call.
Comment | File | Size | Author |
---|---|---|---|
cachethisshit.patch | 4.3 KB | RobLoach | |
Comments
Comment #1
RobLoachUhh, wrong project. lol.
Comment #2
sunCan we move this over to #466090: Scan: Cache results ?
Comment #3
tstoecklerI think now that #719896: Add a hook_libraries_info() is in, it doesn't make sense to only cache the directories, but concentrate on caching the whole library information over in #466090: Scan: Cache results.
Please re-open if you feel differently.
Comment #4
tstoecklerHmmm... #466090: Scan: Cache results is good for the DB cache. But when that is cleared, you're going to end up calling libraries_get_path() possibly a bunch of times on the next page load. So I think we should do static caching in libraries_get_libraries(). Re-opening.
Comment #5
tstoecklerEhhh.... right. I'm actually pretty much a static-caching noob, but I now that I've found this (...), I don't think there's anything we can do.
(Right?)
Marking fixed, because the new issue statuses scare me. :)