Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Add GitHub action to purge cache on update #61

Open
andrewda opened this issue Dec 26, 2019 · 0 comments
Open

Add GitHub action to purge cache on update #61

andrewda opened this issue Dec 26, 2019 · 0 comments

Comments

@andrewda
Copy link
Member

Currently, when a change is made to the website, it can take up to a few hours for the change to appear live for everyone on sert2521.org because of Cloudflare caching. Luckily, Cloudflare provides us with an API we can use to purge the cache for all or specific files. Ideally, the workflow would be as follows:

  1. A change is committed to this repo and automatically published on our website
  2. The GitHub action calculates the files that were changed in the last commit
  3. The action uses the Cloudflare API to purge those files

This will make a much smoother developer and user experience. If you're interested in tackling this, let me know and I can help get you squared away with GitHub Actions and the Cloudflare API credentials!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant