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(index): don't use JSON.stringify() to serialize the cache data (options.cache) #87

Merged
merged 1 commit into from
Dec 14, 2017

Conversation

alexander-akait
Copy link
Member

We should avoid using JSON.stringify because data is buffer and after get from cache we return {type: 'Buffer', data: [...]} and this object don't have length (because it is now not Buffer it is just plain object with properties) - minRation doesn't work.

Other cached package also can contain error. I investigate this right now.

@michael-ciniawsky michael-ciniawsky changed the title fix: cache option behavior fix(index): don't use JSON.stringify() to serialize the cache data (options.cache) Dec 14, 2017
@michael-ciniawsky michael-ciniawsky merged commit 0d22741 into master Dec 14, 2017
@michael-ciniawsky
Copy link
Member

😱

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

Successfully merging this pull request may close these issues.

None yet

3 participants