Allow more things to be cached

This commit is contained in:
Ajay
2024-02-08 03:40:41 -05:00
parent 3c6000f2da
commit b76cfdf798

View File

@@ -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;
}