desbma / gotify-desktop

Small Gotify daemon to send messages as desktop notifications
GNU General Public License v3.0
49 stars 1 forks source link

[Bug] Cache is incorrect #16

Closed OdinVex closed 6 months ago

OdinVex commented 6 months ago

I'm not sure why it but Gotify Desktop's cache is incorrect after a server wipe and restart. Cleaning out ~/.cache/gotify-desktop fixes it. Perhaps a different method of caching would be appropriate, one that is self-correcting.

Edit: A quick glance shows it to be a reliance upon app indexing. Perhaps e-tag or 'if modified since' headers could be used in some part of the filename to help address it, 'app-#-ETAG' candidating and such.

desbma commented 6 months ago

Can you develop "cache is incorrect", do you mean corrupt file, incorrect icon? How does that manifest?

OdinVex commented 6 months ago

Incorrect icon, my apologies. If the Gotify server is reset (wiped, re-setup) or the app index order changes then the cache will be out of order.

desbma commented 6 months ago

It should be fixed by 480a991ff3dafc9abda8a0742ccc38c24f8d9a1d.

If you change icons on the Gotify server, you only need to restart gotify-desktop.