gitfetch icon indicating copy to clipboard operation
gitfetch copied to clipboard

Remove/rework cache expiration data

Open Matars opened this issue 1 year ago • 7 comments

Preferably it should update more often than once a day, the timer for the cache expiration should be ~10-15 minutes

when it is time to refresh the cache, we should serve the current cache, and update it in the background so next time the cache would be up to date without experiencing terminal freeze.

Matars avatar Oct 20 '25 22:10 Matars

Maybe 15~30 mins is ok

Zeviraty avatar Oct 21 '25 09:10 Zeviraty

Maybe add an option to the first boot menu? Or does that make it too crowded

Zeviraty avatar Oct 21 '25 09:10 Zeviraty

Maybe add an option to the first boot menu? Or does that make it too crowded

No I think this would be pretty nice - thanks for the suggestion will probabaly end up having it either through the boot menu or set set by default an hidden

Not sure if people would care to configure cache time or not

Matars avatar Oct 21 '25 09:10 Matars

If people care about their github status in the terminal, they probably care about cache timers 😆

Zeviraty avatar Oct 21 '25 09:10 Zeviraty

Could make a pr for the boot menu option

Zeviraty avatar Oct 21 '25 09:10 Zeviraty

@Zeviraty i was planning an writing some tests to avoid issues like the gh one we had erlier

Thinking on writing cache testing to make sure it's always working on the same PR with the feature

Matars avatar Oct 21 '25 09:10 Matars

Thats ok! you should look into different options:

  • writing your own tests (most of the times its easier and faster)
  • unittest
  • pytest

Looking into adding a makefile probably is also not a bad idea

Zeviraty avatar Oct 21 '25 09:10 Zeviraty