mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 20:17:02 +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);
|
||||
|
||||
// Save in cache
|
||||
redis.setAsync(skipSegmentsKey(videoID), JSON.stringify(segments));
|
||||
if (categories.length == 7) redis.setAsync(skipSegmentsKey(videoID), JSON.stringify(segments));
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user