https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35250 --- Comment #18 from Blou <philippe.blouin@inlibro.com> --- 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.