No mention of cache #106

Open
opened 2020-04-09 20:08:37 +00:00 by buckle2000 · 2 comments
buckle2000 commented 2020-04-09 20:08:37 +00:00 (Migrated from github.com)

There is a part of my code that looks like this:

doc = matter()
doc.content = render(doc.content)

Took awhile to figure out it returns the same object. I don't think gray-matter should keep the object it returns.

There is a part of my code that looks like this: ``` doc = matter() doc.content = render(doc.content) ``` Took awhile to figure out it returns the same object. I don't think gray-matter should keep the object it returns.
jdedwards3 commented 2020-12-12 20:34:09 +00:00 (Migrated from github.com)

this thread helped: https://github.com/jonschlinkert/gray-matter/issues/43#issuecomment-318258919

Passing in empty options object disables caching. This is especially noticeable with many test files containing the same content.

Would, minimally, a PR for the docs be helpful, or a change to make cache keys unique?

this thread helped: https://github.com/jonschlinkert/gray-matter/issues/43#issuecomment-318258919 Passing in empty options object disables caching. This is especially noticeable with many test files containing the same content. Would, minimally, a PR for the docs be helpful, or a change to make cache keys unique?
SystemParadox commented 2021-08-21 16:53:30 +00:00 (Migrated from github.com)

I just lost several hours due to this. If there is any caching at all it should be clearly stated in the readme.

I just lost several hours due to this. If there is any caching at all it should be clearly stated in the readme.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rtlabs-llm-agents/gms-gray-matter#106
No description provided.