unipept / unipept-desktop

This is the desktop application that accompanies the Unipept project.
https://unipept.ugent.be
MIT License
7 stars 0 forks source link

Better invalidate cached http requests when changing DBs #205

Closed pverscha closed 2 years ago

pverscha commented 2 years ago

The desktop app contains a caching mechanism that automatically caches network requests on a per-URL and per-data-object status. However, the URL that's being used to communicate with the Docker containers is always the same (even if the underlying database is different). This means that some requests are wrongly being re-used. This PR fixes this by also taking into account the underlying database properties when computing a cache validation key.