GroupCommerce/sdk.php — pull request #22 by jacobangel (2012-04-02 18:15:19+00:00)
Title: The url being passed in this case does include any url string parameters...

@billrob @JoeCianflone

I was hitting an issue in the drupal project where the voucher barcodes were being improperly cached. It turns out when GC Cache is working properly, the url is the only key used to store info. This works for most urls, however, voucher barcodes are GETs with their arguments passed in as a query string parameter rather than a part of the actual URL. This was causing the cache to use a single bucket to store all image request data, so you could only store one image at a time.

I added the parameters as an optional argument, which if present is serialized and tacked onto the end of the url, so that this case would be avoided.