Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

README

  • Loading branch information...
commit a3e92231b29a9b88b61c1583f437d2d5c158f871 1 parent 24ad697
@dlitvakb dlitvakb authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 README.md
View
14 README.md
@@ -28,3 +28,17 @@ api.delete("/zones/pull.json/1234")
# To purge a file (robots.txt) from cache
api.delete("/zones/pull.json/1234/cache", {"file" => "/robots.txt"})
```
+
+### We now have a shortcut for Purge Calls!
+```ruby
+zone_id = 12345
+
+# Purge Zone
+api.purge(zone_id)
+
+# Purge File
+api.purge(zone_id, '/some_file')
+
+# Purge Files
+api.purge(zone_id, ['/some_file', '/another_file'])
+```
Please sign in to comment.
Something went wrong with that request. Please try again.