langx / website

This is the official website of langx.io
https://langx.io
MIT License
16 stars 9 forks source link

Selective cache purges in Cloudflare after deploying with GitHub Actions #65

Closed xuelink closed 5 months ago

xuelink commented 5 months ago

This pull request adds the ability to perform selective cache purges in Cloudflare after deploying with GitHub Actions. Instead of purging the entire cache, specific URLs or resources can now be specified for purging. This improves efficiency, reduces unnecessary cache invalidation, and ensures that only necessary resources are purged from the cache. The changes include adding a step in the GitHub Actions workflow that uses the jakejarvis/cloudflare-purge-action action to purge the specified URLs from the Cloudflare cache. Fixes #51.