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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
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