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.
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()
orapi.getAllTags()
these functions does not longer return a response from the backend but a local object which has all data already stored.