]> 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)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 8 Jun 2018 10:30:17 +0000 (10:30 +0000)
commit3d68ab447eda3eb5a25444b1ceaeea96b446c64b
tree7959e1ff2cfdcf819ca78c0a1b0654635333abc9
parent495512f6eacdc306932290784cca4e5d01a053f9
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>
C4/Auth.pm
t/db_dependent/Auth.t