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

chore(gatsby): cache shouldn't reference nodes strongly #34821

Merged
merged 2 commits into from
Feb 16, 2022
Merged

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Feb 15, 2022

Description

expirer setting explained in https://github.com/kriszyp/weak-lru-cache#expirer

This just removes strong references from lmdb cache. It doesn't mean nodes WILL be GCed - it just makes it possible (if memory need to be freed).

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Feb 15, 2022
@pieh pieh added topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Feb 15, 2022
@pieh pieh marked this pull request as ready for review February 15, 2022 18:21
Copy link
Contributor

@imjoshin imjoshin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find!

@imjoshin imjoshin changed the title chore: cache shouldn't reference nodes strongly chore(gatsby): cache shouldn't reference nodes strongly Feb 15, 2022
@pieh pieh merged commit 9f23dec into master Feb 16, 2022
@pieh pieh deleted the pieh-patch-1 branch February 16, 2022 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants