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

add purge cache feature #1052

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dannymout
Copy link
Contributor

Added the ability to purge CDN cache at the paths of the files that are uploaded.

  • purge_cache and do_token can be provided to the action
  • when the action is run, array of paths of uploaded file paths are passed to a purgeCache function in DigitalOceanInterface
  • request is made to DigitalOcean for CDN endpoints on the DigitalOcean matching the origin URL to retrieve the CDN ID
  • if there's a CDN, delete request is made to purge CDN cache for all the file paths specified

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