Skip to content

The search index is often stale during preview #1612

Open
@mbostock

Description

@mbostock

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions