]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 11 Jun 2018 08:57:08 +0000 (09:57 +0100)
commit2bae585fcd4d5a5e31c0503cc8ea1cd3ea0f29ba
tree7bf4ab5f6b14b0fb96dd8ee77ec9cd139e5a527f
parent1e19bb32844dedc3d2d4d506e22f60bfac2b4057
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>
C4/Auth.pm
t/db_dependent/Auth.t