fix(extractor): use milliseconds instead of incorrect seconds for ttl

🤦‍♂️
This commit is contained in:
WebStreamr 2026-01-15 20:33:45 +00:00
parent 79c8e7fc32
commit 17e70c169b
No known key found for this signature in database

View file

@ -104,7 +104,7 @@ export class ExtractorRegistry {
if (extractor.ttl) {
await this.urlResultCache.set<UrlResult[]>(cacheKey, urlResults, extractor.ttl);
}
await this.lazyUrlResultCache.set<UrlResult[]>(normalizedUrl.href, urlResults, 2628000); // 1 month
await this.lazyUrlResultCache.set<UrlResult[]>(normalizedUrl.href, urlResults, 2629800000); // 1 month
} else {
await this.lazyUrlResultCache.delete(normalizedUrl.href);
}