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

[5.x] Blink cache Algolia search API calls #10879

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

jacksleight
Copy link
Contributor

@jacksleight jacksleight commented Oct 1, 2024

If you have pagination enabled in the search tag the index is queried twice, once when fetching the results themselves and once when counting the results for pagination. With the Algolia driver both of these queries are identical but consume two of your search requests.

This PR blink caches the API call so that the first request can be reused for the count.

@jasonvarga jasonvarga merged commit aaa023f into statamic:5.x Oct 1, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants