Skip to content

perf(pricing): Improve checkout shipping pricing performance by up to 90% - #246

Merged
yan-ad merged 3 commits into
mainfrom
codex/checkout-shipping-performance
Jul 2, 2026
Merged

perf(pricing): Improve checkout shipping pricing performance by up to 90%#246
yan-ad merged 3 commits into
mainfrom
codex/checkout-shipping-performance

Conversation

@yan-ad

@yan-ad yan-ad commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace random Woo shipping-rate cache busting with a stable checkout-context cache key
  • send enabled courier whitelist values to shipping_price instead of an empty courier payload
  • reuse shipping_price responses through runtime/session/transient cache so selected-courier fee refreshes do not call the API again
  • align plugin AJAX fee-cache context and avoid redundant calculate_totals() calls before Woo update_checkout
  • add request-level setting/whitelist caching for repeated checkout setting reads

Validation

  • php -l on touched PHP files
  • vendor/bin/paratest --configuration paratest.xml --filter CheckoutShippingPerformanceTest
  • vendor/bin/paratest --configuration paratest.xml --filter PluginStructure
  • vendor/bin/paratest --configuration paratest.xml --filter admin_ajax_fee_refresh_preserves_selected_shipping_method_before_caching_fees
  • make zip
  • make test still has one unrelated baseline failure: node_modules/flatted/php/flatted.php missing ABSPATH guard in SecurityValidationTest

@yan-ad yan-ad changed the title [codex] Improve checkout shipping pricing performance perf(pricing): Improve checkout shipping pricing performance by up to 90% Jul 2, 2026
@yan-ad
yan-ad marked this pull request as ready for review July 2, 2026 10:19
@yan-ad
yan-ad merged commit 0d8e6e4 into main Jul 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant