Bug 9967 - Cache authorised value requests properly
authorRobin Sheat <robin@catalyst.net.nz>
Wed, 9 Apr 2014 03:50:37 +0000 (15:50 +1200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 9 Oct 2014 14:05:00 +0000 (11:05 -0300)
commit1878cb0bdf005a0363baa08a3ae19d5f5a48bb8e
treee5e54f5c9387981868e9813a7896691462cc47b9
parent755655a42a2621c86fe3d171564401fd929c28cd
Bug 9967 - Cache authorised value requests properly

Authorised values are now cached using the proper Koha::Cache mechanism,
rather than a simple internal cache. Memoize has been removed because it
didn't really work like we needed it to.

Test plan:
 * running a persistent environment:
 * load the edit item screen
 * refresh several times to ensure any process-based caches are filled
 * add a new LOC authorised value as fast as possible (prepare it on
   another tab.)
 * refresh the edit item page
 * note that the new LOC value may or may not be showing in the
   "shelving location"
 * if more than 5 seconds have passed since saving it, it must now show
   up.
 * refresh a few times to ensure that it's showing on all processes.

Note:
 * This patch depends on the caching changes of 9967.

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Koha.pm