From acdbd3787b104adf9e784c1b24237254f4c524bb Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 8 Feb 2024 01:04:48 -0500 Subject: [PATCH] More specific on what should be client 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 7c9da12..927b9f7 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."); + return (key as string).startsWith("segments.") && !(key as string).includes("shadow"); } \ No newline at end of file