Open abaevbog opened 1 year ago
@dstillman this does not remove translators that are deleted yet. You mentioned there is some kind of mechanism that needed to be checked. If there is nothing special and any deleted translator is just removed from the metadata, we can check if cached translators' IDs exist in the _metadata
when it is fetched and remove it from the cache if it is no there (similar to how handleNewTranslators
fetches translators that are in the metadata but not in the cache yet) ?
Addresses Issue # 1 Automatic translator updates for /web requests. The logic is:
updateTranslatorIfNeeded
function to check if their lastUpdated date is before the lastUpdated date in the metadata. If so, load the translator's code from the repo, update the _cache.