Closed (fixed)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Flag core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2012 at 09:58 UTC
Updated:
27 Sep 2012 at 08:11 UTC
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 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 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 commentedThis also depends on #1524816: Implement D7 hook_hook_info().
(I should maybe do a 3.x roadmap issue.)
Comment #4
Scyther commentedMisread your first post!
Comment #5
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 commentedCommitted the combined patch at #1735556: [meta] flag performance: db caching, hook_hook_info() and .inc files; this issue gets one commit.