Skip to content

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.

4 participants