]> git.koha-community.org Git - koha.git/commit
Bug 18821: (QA follow-up) Last tweaks for performance
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 1 Jun 2018 09:00:57 +0000 (11:00 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 26 Jun 2018 07:46:05 +0000 (09:46 +0200)
commit1e25709f9ce7ca10f2f14c9ae93ee5b5578c55b0
tree1ec8ab0631f7f0f8cfe83d14554a8c1da8dde823
parent6538e4c3165837f10499aa99cc5ab2b00bc6f211
Bug 18821: (QA follow-up) Last tweaks for performance

[1] passing unsafe has no use since it is a scalar, removed it to unconfuse
[2] remove caching when pref is disabled
[3] caching userid removes the need for calling Patron->find each time
[4] subsequent changes in unit test
[5] cosmetic renames to move from session to daily basis (changed dev angle)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
First call going thru Koha::Patron takes about 0.0150 sec.
Subsequent calls only use caching and take about 0.0006 sec.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 2bae585fcd4d5a5e31c0503cc8ea1cd3ea0f29ba)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit f0159f8f5712a526f2c1af44b4f9ecc0d82c15a6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Auth.pm
t/db_dependent/Auth.t