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

The search index is often stale during preview #1612

Open
mbostock opened this issue Aug 27, 2024 · 0 comments
Open

The search index is often stale during preview #1612

mbostock opened this issue Aug 27, 2024 · 0 comments
Labels
bug Something isn’t working

Comments

@mbostock
Copy link
Member

The search index is cached for up to 10 minutes and doesn’t check whether pages have been edited since the last index if you’ve specified the pages config option. (If you haven’t, then it works as expected because we crawl the list of pages in the getter and check if the contents change.) Probably the logic that checks whether the contents have changed should move into the searchIndex caching, not the readPages caching, so that we regenerate the search index if the page contents change even if the list of pages is hard-coded and hasn’t changed.

@mbostock mbostock added the bug Something isn’t working label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

No branches or pull requests

1 participant