-
Notifications
You must be signed in to change notification settings - Fork 45
Feat Automatic cache purge #655
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
base: main
Are you sure you want to change the base?
Conversation
|
commit: |
CACHE_ZONE_ID?: string; | ||
CACHE_API_TOKEN?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest: add documentation for each of the variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, i'm still working on it.
I'm testing a few things especially around Cache purge limits https://developers.cloudflare.com/cache/how-to/purge-cache/#hostname-tag-prefix-url-and-purge-everything-limits
We could add a DO to handle these cases, i think the easiest way would be to just add a buffer DO.
Given how this is used, i think you'd need a custom solution anyway if you exceeds the provided req/s regularly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely sure about naming here. If you have better ideas
This PR will allow to automatically purge Cache Api entry everywhere where we use them