spine-tools / Spine-Database-API

Database interface to Spine generic data model
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
6 stars 5 forks source link

Don't validate cache items more than once #212

Closed manuelma closed 1 year ago

manuelma commented 1 year ago

Cache items need to be validated to check if their references are still there. For example, a user can remove an object class and later fetch the objects of that class. So as these objects are fetched, we need to check if the class is there to find out that it's not and that the objects are actually invalid. This is done and working, but this PR caches the results of the validation to speedup things like the purge.

Checklist before merging