Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #6931

Category None
Changed by Jeff Davis <jeff.davisohnoyoudont@bc.libraries.coop>
Changed at Tue 28 Apr 2020 15:10:38
Repository git://git.evergreen-ils.org/Evergreen.git
Project Evergreen
Branch master
Revision 83e18205e2e1d0123174b17029401a1481405060


LP#1848550: client-side caching of org settings for AngularJS
The web client almost always does live lookups any time it needs to
check an org setting.  But these settings rarely change, so it would
make sense to cache them.  They're already cached using Lovefield in
order to support offline; this commit checks the cache first, and only
does a live lookup if the setting is uncached.

The settings cache is cleared on login to ensure stale values don't
stick around forever.  To refresh the cache, simply logout and then
login; cached values will be deleted and the latest values will be
retrieved from the server when they are needed.

Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>

Changed files