mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] fix availability ttl propagation
This commit is contained in:
@@ -74,7 +74,7 @@ function cacheAvailabilityResults(results) {
|
|||||||
const key = `${AVAILABILITY_KEY_PREFIX}:${infoHash}`;
|
const key = `${AVAILABILITY_KEY_PREFIX}:${infoHash}`;
|
||||||
const value = results[infoHash];
|
const value = results[infoHash];
|
||||||
const ttl = value && value.length ? AVAILABILITY_TTL : AVAILABILITY_EMPTY_TTL;
|
const ttl = value && value.length ? AVAILABILITY_TTL : AVAILABILITY_EMPTY_TTL;
|
||||||
memoryCache.set(key, value, ttl)
|
memoryCache.set(key, value, { ttl })
|
||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user