heikkilevanto / beertracker

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

Improve cache cleaning #296

Closed heikkilevanto closed 3 months ago

heikkilevanto commented 3 months ago

Instead of deleting png files every time plotting a graph, collect all cache cleaning at the time we update the data file.

At that time, delete all png files for the user. Keep all .data files, but delete everything else on the data directory that is over 2 days old.

That will keep the data directory much cleaner.