fix(extractor): never use external URL results for lazy URL caching to avoid clashes
This commit is contained in:
parent
3c979e77cc
commit
1ddc8d99d6
1 changed files with 3 additions and 1 deletions
|
|
@ -103,7 +103,9 @@ export class ExtractorRegistry {
|
|||
if (extractor.ttl) {
|
||||
await this.urlResultCache.set<UrlResult[]>(cacheKey, urlResults, extractor.ttl);
|
||||
}
|
||||
await this.lazyUrlResultCache.set<UrlResult[]>(normalizedUrl.href, urlResults, 2629800000); // 1 month
|
||||
if (extractor.id !== 'external') {
|
||||
await this.lazyUrlResultCache.set<UrlResult[]>(normalizedUrl.href, urlResults, 2629800000); // 1 month
|
||||
}
|
||||
} else {
|
||||
await this.lazyUrlResultCache.delete(normalizedUrl.href);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue