-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continue optimization work for Frontend Currencies. (#3466)
* Optimisation Add some cache that should speed all queries up. * Cache get_selected_currency_code() It should fix some tests * Added FrontendCurrencies::selected_currency_changed Allow to disable the cache in case front end changes * Fix tests Fix tests Fix tests Fix tests Fix tests Fix tests Some fix * Continue optimization work for Frontend Currencies. * Continue optimization work for Frontend Currencies. * Refactor should_use_order_currency to only call is_call_in_backtrace when needed, update tests accordingly. * Making code in should_use_order_currency read better. * Only init compatibility classes if there's more than one currency in use. * Add Utils method to check page query_vars. Add compatibility_classes property in Compatibility to allow for testing. Add/update tests. * Fix type declaration in docblock. Co-authored-by: millerf <[email protected]>
- Loading branch information
1 parent
685b09c
commit 1518a12
Showing
7 changed files
with
200 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters