Skip to content

Improve shipping methods performance#3841

Merged
lukeholder merged 2 commits intocraftcms:4.xfrom
boboldehampsink:improve-shipping-methods-performance
Jan 21, 2025
Merged

Improve shipping methods performance#3841
lukeholder merged 2 commits intocraftcms:4.xfrom
boboldehampsink:improve-shipping-methods-performance

Conversation

@boboldehampsink
Copy link
Contributor

Description

Currently commerce already calculates shipping methods total price before checking if it is enabled or matches the order. We have a lot of disabled shipping methods and this causes performance issues. Looking at the code I see no reason to move this line after the enabled/match checks.

@boboldehampsink boboldehampsink requested a review from a team as a code owner January 8, 2025 09:14
@lukeholder lukeholder merged commit aad0a17 into craftcms:4.x Jan 21, 2025
8 checks passed
@lukeholder
Copy link
Member

Thanks!

@boboldehampsink boboldehampsink deleted the improve-shipping-methods-performance branch March 13, 2025 07:55
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.

2 participants