tclaus / stocks

A simple stocks app for haiku. Mimics Stocks from macOS. The released packages are ready to use on a Haiku instance. Just download the latest release.
5 stars 3 forks source link

Cache API responeses #13

Open tclaus opened 1 year ago

tclaus commented 1 year ago

Searches for the same query shouldn't send over and over again to the API in a certain period of time. The results could be stored for some minutes before sending again to the API. Dont query frequently on weekends.

Don't forget to clear the list if it's getting too old.

cafeina-software commented 5 months ago

The old data that was retrieved should be saved in the app configuration folder. It's not very likely that a company like the data provider would provide historical misleading data, so for the old data it should be cached until the user wants to wipe out the cache and refresh all the data. If there is a expiration date of the cached data, it should not be too soon or too far.

This is specially true because of this:

tclaus commented 5 months ago

I agree so far with all your points and will keep this in mind when it cones to implementation.