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

cache bust search index when pushing to main #102

Closed
desimone opened this issue Aug 12, 2022 · 4 comments
Closed

cache bust search index when pushing to main #102

desimone opened this issue Aug 12, 2022 · 4 comments
Labels

Comments

@desimone
Copy link
Collaborator

What's incorrect or missing

Currently, we don't cache bust our algolia index when updates are made resulting in stale data being our index.

What's the resolution?

Cache bust on pushes to main, possibly through a github action.

Related

@desimone desimone added the docs label Aug 12, 2022
@alexfornuto
Copy link
Contributor

Looks like we could also schedule the crawler to re-crawl every day: https://www.algolia.com/doc/tools/crawler/apis/configuration/schedule/

@desimone
Copy link
Collaborator Author

A re-crawl might be easier / more idiot proof.

@alexfornuto
Copy link
Contributor

I just set schedule: 'every 1 day at 12:00 am', in the crawler. Not sure what timezone it's using.

@desimone
Copy link
Collaborator Author

That works.

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

No branches or pull requests

2 participants