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>
Wed, 13 Jun 2018 06:40:39 +0000 (08:40 +0200)
commitf0159f8f5712a526f2c1af44b4f9ecc0d82c15a6
treec070f3bd4a637059e0f8ead6e0472015d969b8f6
parent30ea1a4b4b783635e817dd3c06a3d0c881961d59
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>
C4/Auth.pm
t/db_dependent/Auth.t