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: remove schema cache invalidation #3631

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

acao
Copy link
Member

@acao acao commented Jun 25, 2024

the intention is to ensure that type definitions update, and that the schema cache is not completely invalidated when handling every (watched) file change. the schema cache should now only be invalidated by the lru-cache ttl itself

this should fix #3622 but requires further testing, as there could be other problems with my lru cache implementation here

Copy link

changeset-bot bot commented Jun 25, 2024

🦋 Changeset detected

Latest commit: ea3b0fc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
graphql-language-service-server Patch
graphql-language-service-cli Patch
vscode-graphql Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@acao acao force-pushed the fix-3622-schema-invalidation branch from c6461de to ea3b0fc Compare June 25, 2024 14:17
@acao
Copy link
Member Author

acao commented Jun 25, 2024

oof, and now a test fails that shouldn't... probably because lru cache introduces a timing condition

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