]> git.koha-community.org Git - koha.git/commit
Bug 29672: Increase performance of Koha::Plugins->call
authorJulian Maurice <julian.maurice@biblibre.com>
Thu, 9 Dec 2021 13:49:32 +0000 (14:49 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 3 Nov 2022 14:28:11 +0000 (11:28 -0300)
commit08f24d0adfa88aa2648c8880a00d4d20c85e3099
treee32374dcc75da93a7182c31416fc74606210ad9a
parent00f72975ed0ee2b7660ff1ae22cbb5f559592e2d
Bug 29672: Increase performance of Koha::Plugins->call

Make use of Koha::Cache::Memory::Lite to avoid hitting the database and
creating plugins object for every call to Koha::Plugins->call

Test plan:
1. Make sure plugins still work by executing
   `prove t/db_dependent/Koha/Plugins/Plugins.t`
2. Run the test script provided in the following patch to see how it
   affects performances

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Plugins.pm
t/db_dependent/Koha/Plugins/Plugins.t