mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Merge pull request #207 from ajayyy/redis
Only cache for all categories
This commit is contained in:
commit
ef79439557
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue