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(gatsby): replace checks for .cache/json with checks for .cache/caches-lmdb #33431

Merged
merged 1 commit into from
Oct 7, 2021

Conversation

raresportan
Copy link
Contributor

Description

When lmdb-store is used, the cache is kept in .cache/caches-lmdb instead of .cache/json. However, even if .cache/json is not used in this case, the initialize function checks for the existence of that file and if it doesn't exist then deletes all existing HTML and CSS files.

Documentation

Related Issues

Fixes #33262

Copy link
Contributor

@vladar vladar left a comment

Choose a reason for hiding this comment

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

Thank you for tackling this! LGTM 🚢

@vladar vladar removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Oct 7, 2021
@vladar
Copy link
Contributor

vladar commented Oct 7, 2021

Looks like npm is down ATM. Will re-run failed tests when it goes up to make sure visual regression one is a fluke and not a real issue (the other two are known to be broken)

@vladar vladar self-assigned this Oct 7, 2021
@vladar vladar merged commit 751cc43 into gatsbyjs:master Oct 7, 2021
@raresportan raresportan deleted the replace-checks-cache-json branch October 8, 2021 04:42
wardpeet pushed a commit to herecydev/gatsby that referenced this pull request Oct 29, 2021
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.

Initialize checks for unused ".cache/json" directory before deleting all HTML and CSS
2 participants