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

SPF-API: Limit CloudFront cache length for data relating to current date #91

Open
Learnspree opened this issue Apr 8, 2020 · 1 comment
Assignees
Labels
aws AWS Testing bug Something isn't working

Comments

@Learnspree
Copy link
Owner

SPF-API: Limit CloudFront cache length for data relating to current date
If we cache as we do now the request that ends on the current date, that request will never update to include data for later in the day.

However, if we only cache for 1 hour (for example) in this scenario, we'll lose the benefit of caching as most requests will likely end on the current day as is the default (unless we change default to be as of yesterday?)

@Learnspree Learnspree added bug Something isn't working aws AWS Testing labels Apr 8, 2020
@Learnspree Learnspree self-assigned this Apr 13, 2020
@Learnspree
Copy link
Owner Author

SPF WEB was updated to default to end date of yesterday which mitigates this issue and allows us (with less impact on DynamoDB RCU) to change default cache length for queries with end date of today to 1 hour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws AWS Testing bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant