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

Set infinite TTL for redirects #375

Merged
merged 3 commits into from
May 23, 2024
Merged

Conversation

achavez
Copy link
Contributor

@achavez achavez commented May 23, 2024

Description of Change

This updates the cache behavior for redirects to set a 0 (aka infinite) TTL so that redirects are persisted in the cases where a caching layer is used that supports persistence (ex: Redis).

Related Issue

n/a

Motivation and Context

We want to be able to set a default global TTL when using a custom cache implementation, but redirects benefit from persistence if the cache layer supports it.

Checklist

  • Ran npm run lint and updated code style accordingly
  • npm run test passes
  • PR has a description and all contributors/stakeholder are noted/cc'ed
  • tests are updated and/or added to cover new code
  • relevant documentation is changed and/or added

@achavez achavez marked this pull request as ready for review May 23, 2024 16:01
@achavez achavez requested review from isaacwhite and afischer May 23, 2024 16:54
@achavez achavez merged commit b3f70fa into main May 23, 2024
3 checks passed
@achavez achavez deleted the set-infinite-ttl-for-redirects branch May 23, 2024 17:37
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