xtuple/xdruple_commerce — pull request #162 by bendiy (2014-11-07 00:49:34+00:00)
Title: Fix async product caching to prevent double load.

@amikheychik
`$product` was set [here](https://github.com/bendiy/xdruple_commerce/blob/d69dbecdb27462a131e9d3fa7e5de7dc9141a393/modules/xdruple_queries/xdruple_queries.module#L220), but not in the async loop, so when the line item was loaded, it always loaded the same product and only cached one request forcing all other 19 products to request prices one after the other. This re-initializes `$product` for the async loop and caches all 20 products correctly.

Please merge this and push to the bergin staging server so we can run more test. It should be much faster now.