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.
If we move the handful of functions that are at the top of flag.inc, so that it contains only classes, then we can stop including it on every page load and just have the autoloader include it when needed.
Comments
Comment #1
Scyther CreditAttribution: Scyther commentedIs this not a duplicate of #1699752: split flag.inc into different classes ? Or at least it has been done in that patch for that issue.
Comment #2
joachim CreditAttribution: joachim commentedIt's not, as (IIRC) there are still non-class functions in flag.inc.
BTW this is also postponed until the monster rename lands.
Comment #3
joachim CreditAttribution: joachim commentedThis also depends on #1524816: Implement D7 hook_hook_info().
(I should maybe do a 3.x roadmap issue.)
Comment #4
Scyther CreditAttribution: Scyther commentedMisread your first post!
Comment #5
joachim CreditAttribution: joachim commentedHmm ok I'm slightly confused by what *I*'ve written now.
> so that it contains only classes
That's not true -- the classes are gone now.
Basically:
- we moved classes out already
- hook implementations are going to move to a new flag.flag.inc
Therefore this issue is about anything left moving to the module file, and then flag.inc being removed completely!
Comment #6
joachim CreditAttribution: joachim commentedCommitted the combined patch at #1735556: [meta] flag performance: db caching, hook_hook_info() and .inc files; this issue gets one commit.