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

Julian Maurice <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Julian Maurice <[email protected]> ---
Hi Kyle,

As it is in master, Koha::Plugins::call runs one SQL query on the first
invocation, and zero on the next invocations (thanks to
Koha::Cache::Memory::Lite).
With your patches, it will run 2 SQL queries on every invocations. Is it really
faster ?

(In reply to Kyle M Hall from comment #0)
> 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.

That's two different things. `get_enabled_plugins` instantiates each plugin
object, while `call` uses these plugin object to invoke the plugin method.
You can't invoke the plugin method without instantiating the plugin object
first

I can see that the patches are not finished yet, but wanted to give you an
early feedback anyway. I hope that helps

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