fastly/fastly-rails — pull request #27 by mmay (2014-09-04 01:46:41+00:00)
Title: Purge without fetching the service first

Currently when purge or purge_all is called this first does a GET for the service object *then* makes the actual purge request. This is really bad for performance and some weirdness in the fastly-ruby client makes this appear like a good strategy (i.e. purge_by_key instance method on Service).

This removes the GET and uses string interpolation to build the purge URL.