I tried adding
variable_set('commerce_australia_post_rates_timeout', 60);
To allow the rates to be reloaded from the cache if the last shipping request was less than 60 seconds ago based on commerce_shipping_rates_cache_get(). However, this always perform a new request to the API.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | commerce_auspost-reload_cache-2507295-1.patch | 5.57 KB | jcherbert |
Comments
Comment #1
jcherbert commentedChanged code to allow commerce_shipping_rates_cache_set() to specify the shipping service name in addition to the method. This allows multiple methods to be created in the cache for when multiple shipping services are selected on the admin page, otherwise only the first shipping service rate request would be returned.
Comment #3
jcherbert commented