Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache policy with environment flag and identity flags conflicts #97

Open
bamanrich opened this issue Nov 3, 2022 · 1 comment
Open
Assignees

Comments

@bamanrich
Copy link

Let say I configure a FlagsmithCache of 1 minute.

If I call getEnvironmentFlags and then call getIdentityFlags, then the first cached call will be returned for the second call.

I feel like this behavior is error prone as we don't expect to have the "default" value of environment flags when we request for a specific identity override, even if we cache the results of the API.

@matthewelwell
Copy link
Contributor

Thanks for raising this @bamanrich - I totally agree with you here. I'll look to roll this into a new release in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants