Currently, the implementation of Item in database.py includes fields for metadata like title, year, etc. These metadata fields are populated from the LSP/ILS at the time the Item object is created. The fields are used to fill out the /item page. Unfortunately, keeping this data cached introduces the problem that the metadata may be updated in the LSP but never be updated in the Item object kept in the database.
Getting the data dynamically every time /item pages are generated is not an option due to obvious performance reasons, but we should find a way to (e.g.) refresh the data, or otherwise avoid potential data inconsistencies.
Currently, the implementation of
Itemindatabase.pyincludes fields for metadata like title, year, etc. These metadata fields are populated from the LSP/ILS at the time theItemobject is created. The fields are used to fill out the/itempage. Unfortunately, keeping this data cached introduces the problem that the metadata may be updated in the LSP but never be updated in theItemobject kept in the database.Getting the data dynamically every time
/itempages are generated is not an option due to obvious performance reasons, but we should find a way to (e.g.) refresh the data, or otherwise avoid potential data inconsistencies.