mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 04:57:04 +03:00
Only cache for all categories
This commit is contained in:
@@ -253,7 +253,7 @@ async function handleGetSegments(req: Request, res: Response): Promise<Segment[]
|
|||||||
res.sendStatus(404);
|
res.sendStatus(404);
|
||||||
|
|
||||||
// Save in cache
|
// Save in cache
|
||||||
redis.setAsync(skipSegmentsKey(videoID), JSON.stringify(segments));
|
if (categories.length == 7) redis.setAsync(skipSegmentsKey(videoID), JSON.stringify(segments));
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user