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

invalidate _content on rebuild if necessary #156

Merged

Conversation

brendenpalmer
Copy link
Contributor

There's currently a bug in Entry where _content isn't invalidated properly on rebuilds. This can lead to changes being made by a developer that will ultimately never be bundled on a local development server; the only real mitigation in this case is to re-start your server.

The failing scenario is as follows:

  • As part of Entry we set _content because some file string's length is less than contentLimit
  • A rebuild is triggered as a result of some changes that exceed contentLimit
  • Whenever content is subsequently accessed, we'll get the previously cached _content, not the new updates as you'd expect

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

Successfully merging this pull request may close these issues.

None yet

2 participants