ch-a-os / DocSort

Digitize and access everything, everywhere.
GNU General Public License v3.0
0 stars 1 forks source link

Global cache in APIService #151

Open Mondei1 opened 5 years ago

Mondei1 commented 5 years ago

It would increase the performance of our frontend a lot If we cache all previous fetched information. For example: If we fetched all tags at startup why fetching them again? We can execute in an interval of one minutes a function that fetches all data.

So, when a component executes api.getLatestDocuments() or api.getAllTags() these functions does not longer return a response from the backend but a local object which has all data already stored.