From b76cfdf798f09b7f7f056e3d75f008b318f7c408 Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 8 Feb 2024 03:40:41 -0500 Subject: [PATCH] Allow more things to be cached --- src/utils/redisKeys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/redisKeys.ts b/src/utils/redisKeys.ts index 0be7bd6..0b96d8c 100644 --- a/src/utils/redisKeys.ts +++ b/src/utils/redisKeys.ts @@ -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; } \ No newline at end of file