cache-service.js 397 B

12345678910111213141516
  1. /**
  2. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  3. */
  4. define([
  5. 'Magento_Checkout/js/model/shipping-rate-registry'
  6. ], function (rateRegistry) {
  7. 'use strict';
  8. return {
  9. invalidateCacheForAddress: function(address) {
  10. var cacheKey = address.getCacheKey();
  11. rateRegistry.set(cacheKey, null);
  12. }
  13. };
  14. });