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.

Comments

jcherbert’s picture

Status: Active » Needs review
StatusFileSize
new5.57 KB

Changed 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.

  • jcherbert committed 6572657 on 7.x-1.x
    Issue #2507295 by jcherbert: Reload rates from cache
    
jcherbert’s picture

Status: Needs review » Closed (fixed)