-
Notifications
You must be signed in to change notification settings - Fork 216
Use database cache for all customer payment methods #4570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
daledupreez
wants to merge
19
commits into
develop
Choose a base branch
from
add/database-caching-for-all-payment-methods
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
91d638b
Basic get_all_payment_methods() implementation
daledupreez 35837db
Ensure we clear the new _all payment methods cache
daledupreez 9cfccaf
Always send expand flags for SEPA
daledupreez 68bee81
Refactor logic to get customer UPE tokens
daledupreez c622d76
Refactor WC_Stripe_Subscriptions_Trait->maybe_render_subscription_pay…
daledupreez 2e20c28
Revert "Refactor WC_Stripe_Subscriptions_Trait->maybe_render_subscrip…
daledupreez b733cd3
Reinstate SEPA logic
daledupreez 243d766
Merge branch 'develop' into refactor/fetching-all-customer-payment-me…
daledupreez 341f885
Remove unnecessary array_merge() call
daledupreez 20ade01
Changelog
daledupreez 6c9eb2f
Use Payment Method Configuration to identify active payment methods
daledupreez 0b12464
Merge branch 'develop' into refactor/fetching-all-customer-payment-me…
daledupreez b6e1e68
Add link to Stripe docs for limit argument
daledupreez aaa7ba7
Use one-line isset() for missing customer checks
daledupreez ef842a2
Use database cache for all payment methods cache
daledupreez 247b333
Changelog
daledupreez 4dc2b3c
Remove double-period
daledupreez 6028240
Merge branch 'develop' into add/database-caching-for-all-payment-methods
daledupreez 5e314fa
Merge branch 'develop' into add/database-caching-for-all-payment-methods
daledupreez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The clear_cache method has inconsistent caching mechanisms - it still uses delete_transient for individual payment method types but WC_Stripe_Database_Cache::delete for all payment methods. Consider updating all cache clearing to use the same mechanism for consistency.
Copilot uses AI. Check for mistakes.