[Koha-bugs] [Bug 34121] New: Improve performance of Koha::Plugins::call

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 26 17:46:32 CEST 2023


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

            Bug ID: 34121
           Summary: Improve performance of Koha::Plugins::call
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Plugin architecture
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: kyle at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

Koha::Plugins::call() uses get_enabled_plugins to get all enabled plugins,
including plugins that do not have the method to be called. In addition,
get_enabled_plugins uses can_load to evaluate plugis, but call already uses
eval to call methods making the use of can_load and $plugin_class->new()
superfluous and wasteful.

We should filter out all enabled plugins that do not match the plugin method
being called and allow the eval in call() to handle plugin error handling.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list