bright-address-95055
07/11/2024, 9:57 PMposthog.feature_enabled("feature-name", user_id, only_evaluate_locally=True)
. I can’t find a way to both:
1. Cache at the server level, and
2. Get per-user feature flags
If I only use one instance, it will cache but I won’t be able to check per user flags since the user attributes is tied to the instance.
If I use one instance per request per the docs recommendation, I won’t be able to share cache.
I don’t want a http fetch every time I check the flag and I’m ok with stale-while-revalidate. How do I do this?fresh-football-47124
bright-address-95055
07/11/2024, 10:00 PMbright-address-95055
07/11/2024, 10:01 PMfresh-football-47124
fresh-football-47124
fresh-football-47124
bright-address-95055
07/11/2024, 10:05 PMbright-address-95055
07/11/2024, 10:06 PMhash(user_id) % 10 < 3
instead of http requestfresh-football-47124
bright-address-95055
07/11/2024, 10:08 PMbright-address-95055
07/11/2024, 10:08 PMbright-address-95055
07/11/2024, 10:08 PMfresh-football-47124
bright-address-95055
07/11/2024, 10:09 PMfresh-football-47124
bright-address-95055
07/11/2024, 10:10 PMbright-address-95055
07/11/2024, 10:11 PMbright-address-95055
07/11/2024, 10:12 PMbright-address-95055
07/11/2024, 10:12 PMbright-address-95055
07/11/2024, 10:12 PMrhythmic-agent-34208
07/20/2024, 1:11 AM