guinget icon indicating copy to clipboard operation
guinget copied to clipboard

Add an option to refresh cache on application start.

Open DrewNaylor opened this issue 5 years ago • 4 comments

It'll be off by default as it takes a little while to load, there's no way to make sure the cache hadn't just been updated yet, and the loading itself is not async.

DrewNaylor avatar Sep 03 '20 14:09 DrewNaylor

This can be added to 0.1.3 as long as I figure out a way to store the last update time. Maybe for now it could be stored in Settings. Preferably the package list loading would be async, but I haven't really figured out a good way to do that yet. Virtual Mode may be the way to do it, but I have to figure out how to store the data back into the datasource, then update that datasource when needed.

DrewNaylor avatar Oct 21 '20 04:10 DrewNaylor

Delaying this until 0.1.4 since it could be a challenge.

DrewNaylor avatar Nov 02 '20 08:11 DrewNaylor

This still needs the async loading feature, which I want to have done before 0.1.4 is out. At the rate 0.1.4 is going, it may end up being 0.2.

DrewNaylor avatar Jan 24 '21 03:01 DrewNaylor

I think this actually can be an option in the next version as the loading is so much faster now. Just have to store the last-updated date, add an option to configure how long since the last cache update it should auto-refresh on startup instead of just loading the cache, and add a way to turn it off.

The next version may be v0.3 rather than v0.2.1 if I add enough features in this development cycle.

DrewNaylor avatar Jun 16 '21 08:06 DrewNaylor