-
Notifications
You must be signed in to change notification settings - Fork 74
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
Soft purge #62
Soft purge #62
Conversation
curl -H 'Fastly-Key: YOUR_API_KEY' -X POST \ | ||
https://api.fastly.com/service/YOUR_SERVICE_ID/purge/YOUR_SURROGATE_KEY | ||
``` | ||
|
||
Previously purging made an API call to the C</purge> endpoint of the Fastly API. |
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.
Markdown syntax error: should be /purge
@@ -132,21 +132,44 @@ every time you issue a purge: | |||
fastly = Fastly.new(api_key: 'YOUR_API_KEY') | |||
service = Fastly::Service.new({ id: 'YOUR_SERVICE_ID' }, fastly) |
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.
Any reason we recommend this way of doing it rather than
service = fastly.get_service('YOUR_SERVICE_ID')
?
When will this be merged? I could most definitely use this feature :) I also reached out to fastly support to see if this would be merged soon and haven't heard back quite. |
@samratjp We're looking at it this sprint. Thanks for expressing interest. |
@samratjp this functionality was released as part of 1.4.0. https://rubygems.org/gems/fastly/versions/1.4.0 |
@blithe thanks for the update :) Can you guys also bump the rails gem to pull the latest ruby-gem as well please and thank you?! |
@blithe thanks for the bump in the rails gem! |
Allows users to do "soft" purging.
Also switches to 'new' method of purging using PURGE verb.