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

Soft purge #62

Merged
merged 6 commits into from
May 9, 2016
Merged

Soft purge #62

merged 6 commits into from
May 9, 2016

Conversation

simonwistow
Copy link
Member

Allows users to do "soft" purging.

Also switches to 'new' method of purging using PURGE verb.

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.
Copy link
Member

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)
Copy link
Member Author

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')

?

@samratjp
Copy link

samratjp commented May 9, 2016

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.

@blithe blithe merged commit de9ec93 into master May 9, 2016
@blithe blithe deleted the soft-purge branch May 9, 2016 22:16
@kimmi8
Copy link

kimmi8 commented May 9, 2016

@samratjp We're looking at it this sprint. Thanks for expressing interest.

@blithe
Copy link
Contributor

blithe commented May 9, 2016

@samratjp this functionality was released as part of 1.4.0. https://rubygems.org/gems/fastly/versions/1.4.0

@samratjp
Copy link

@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?!

@samratjp
Copy link

@blithe thanks for the bump in the rails gem!

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.

7 participants