mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Allow more things to be cached
This commit is contained in:
@@ -69,5 +69,5 @@ export function userFeatureKey (userID: HashedUserID, feature: Feature): string
|
||||
}
|
||||
|
||||
export function shouldClientCacheKey(key: RedisCommandArgument): boolean {
|
||||
return (key as string).startsWith("segments.") || (key as string).startsWith("reputation.");
|
||||
return (key as string).match(/^(?:segments\.|reputation\.|branding\.|labels\.)/) !== null;
|
||||
}
|
||||
Reference in New Issue
Block a user