Closed
Description
Books are created via a Zimfarm call.
At that moment, ZIMs are probably online or about to be.
We add them to the Title (or create it if it's the first) and that's it.
Over time, we end end with many books for a Title.
We know that we are currently keeping at most 2 dates ZIM files per content on the server so if we have 3 books for a Title in the DB, chances are one of them is not reachable.
We should write down two things IMO:
- what do we do now about this? I suggest we run a periodic script that checks titles with more than 2 books, check if the file is still online (HEAD) and delete the Book if not. We may want to check all the books to unsure we don't expose a dead book but that seems overkill until we use the generated XML file.
- describe what we would ideally want. We've discussed we'd like the CMS to trigger the deletion of expired files but we haven't defined what an expired file is. I suppose this might depend on inclusion of not in one of the libraries…