heikkilevanto / beertracker

Simple script to track the beers I drink
GNU General Public License v2.0
2 stars 1 forks source link

Cache the beer board #269

Closed heikkilevanto closed 3 months ago

heikkilevanto commented 6 months ago

It takes a second or two to fetch. Cache would be much faster.

But cache invalidation is one of the hard problems. At least have a manual way...

heikkilevanto commented 3 months ago

Now more important after #287.

Do this before #292

heikkilevanto commented 3 months ago

Keep the cache in the beerdata directory, with a name derived from the script name (not display name).

The cache files may be shared between users

Ok, there may be a small risk of a race condition, but with two users I can live with it.