[Koha-bugs] [Bug 29672] New: Increase performance of Koha::Plugins->call
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Dec 9 15:34:30 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29672
Bug ID: 29672
Summary: Increase performance of Koha::Plugins->call
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: ASSIGNED
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: julian.maurice at biblibre.com
Reporter: julian.maurice at biblibre.com
QA Contact: testopia at bugs.koha-community.org
Every call to Koha::Plugins->call do a lot of database queries:
1) One in GetPlugins searches for available plugin_class in plugin_methods
table
2) One in Koha::Plugins::Base::is_enabled for each plugin returned by (1)
3) One or two in Koha::Plugins::Base::new for each plugin returned by (1) to
check the install status and the installed version
All of these requests only need to be made once per HTTP request at most. One
could argue that it's needed only at Koha startup but that besides the point of
this bug report.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list