LP1848550 Cache org settings in IndexedDB (Angular)
authorBill Erickson <berickxx@gmail.com>
Mon, 2 Dec 2019 17:26:22 +0000 (12:26 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 28 Apr 2020 18:16:16 +0000 (14:16 -0400)
commit744aed0d26495174dc7d61ccdd3a11fe45a21a33
treea4d93415bcf20bfc96306d5aed1766220c165a23
parent8093ea8eae6d4b0f1c80660636c89ec6451a4049
LP1848550 Cache org settings in IndexedDB (Angular)

Teach the org settings lookup code to store cacheable settings (those
for "here") in IndexedDB to reduce the number of repetitive network
calls for org unit settings.

Settings cached in IndexedDB are cleared upon successful login to avoid
stale values.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/eg2/src/app/core/org.service.ts
Open-ILS/src/eg2/src/app/staff/login.component.ts