https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35250

--- Comment #18 from Blou <[email protected]> ---
It is very hard to decouple those fully.  Config::SysPrefs uses
$C4::Context::use_syspref_cache, which is in C4::Context because the sub
preference() is still there and might use the cache.

Of course, all this could/should be moved to Koha/Config/SysPrefs, but we're
talking hundred of calls to change from C4::Context->preference to
Koha::Config::SysPrefs->preference(), and that would be hell to rebase
repetitively.


Right now (locally), I get a 50M footprint to simple use of
Koha::Config::SysPrefs, and 21M for C4::Context.  I don't think SysPrefs can
live without C4/Context because how would it find its DB connection? 
Somewhere, SysPrefs needs Context.  But at least, Context doesn't need SysPrefs
and that would make a big difference to a lot of scripts if we could decouple
Context completely from the db objects.  If I understand right.


In short, the only thing I see I could do "more" is moving the preference subs
to SysPrefs, but that seems like a task to automate just before a Pushed to
Master, not something that can be rebased for months.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to