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

feat(client): Caching requests to servers for feed #12

Merged
merged 5 commits into from
Feb 2, 2024

Conversation

shouya
Copy link
Owner

@shouya shouya commented Feb 1, 2024

This PR implements a client that caches the get requests to the servers when fetching feeds. It is used in places where reqwest::Client is used. Currently there are two places:

  • the client used to fetch the source (default ttl: 15 minutes)
  • the full_text filter (default ttl: 12 hours)

This mechanism is expected to help in speeding up the fetching of feeds especially for repeated full-text requests.

I'm also planning to employ this cache tests to insert custom fixtures for certain web addresses for future feature tests.

@shouya shouya merged commit 20937b9 into master Feb 2, 2024
@shouya shouya deleted the client-request-cache branch February 2, 2024 11:35
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.

1 participant