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

Fix invalid cache value #58

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

VincentLanglet
Copy link
Contributor

Hi @matthewelwell,

I recently got an error
image

Which is caused by the cachedCall returning null.

I'm not sure if it's a bad luck about the ttl expiring between the has call and the get call (therefor returning null)
or if it's because we had invalid values in the cache or any other reason...

But when using cache, I assume flagsmith should get the value and check it's an array/object before returning it. (In order to respect the phpdoc of the method)

@gagantrivedi gagantrivedi merged commit d63f07b into Flagsmith:main Nov 7, 2023
4 checks passed
@VincentLanglet
Copy link
Contributor Author

Thanks @gagantrivedi, is it possible to tag a new release :)

@gagantrivedi
Copy link
Member

gagantrivedi commented Nov 7, 2023

Thanks @gagantrivedi, is it possible to tag a new release :)

Yeah, once #59 is approved (in a couple of hours)

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

Successfully merging this pull request may close these issues.

2 participants