CivicActions / nebula

Other
3 stars 5 forks source link

Add a purge CDN cache step to deployment #34

Closed davenuman closed 9 years ago

davenuman commented 9 years ago

Currently when the production site is deployed, updates are not seen for some time because we still see the CloudFlare CDN cache of the site. The API supports purging the cache so we should do that after the site is deployed.

davenuman commented 9 years ago

Code added but I see this message in the output:

[Error: Rate limit enforced for cache purge. (You can try again in 60 seconds.) If you'd like to make rapid changes to your cached resources, check out "Development Mode".]

This could be due to the fact that I was just testing the api call before adding it to the script. I'll check on next deploy to see if this persists.

davenuman commented 9 years ago

As I expected, it worked on the next deploy without error:

Cache purged for domain sideeffect.io

No code change.