Skip to content
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

Run Stripe subscription syncing middleware only on specific pages #478

Merged
merged 10 commits into from
Sep 4, 2024

Conversation

Moggach
Copy link
Contributor

@Moggach Moggach commented Sep 2, 2024

Description

Updates the update_stripe_customer_subscription function to run only on specific page paths that concern changes to subscriptions

Motivation and Context

Existing code running this function on every page load is causing page load times of 6-7 seconds when user is logged in

@Moggach Moggach changed the base branch from main to production September 2, 2024 16:53
@Moggach Moggach force-pushed the adjust-slow-middleware-syncing-subs branch from d2d6f0d to 240a3c4 Compare September 2, 2024 16:54
@janbaykara
Copy link
Member

LGTM. Just would be good to fix that CI error.

@Moggach Moggach changed the base branch from production to main September 4, 2024 13:29
@Moggach Moggach changed the base branch from main to production September 4, 2024 13:30
@Moggach
Copy link
Contributor Author

Moggach commented Sep 4, 2024

LGTM. Just would be good to fix that CI error.

okay cool. The linter has picked up some Typescript errors that are not to do with this PR so I'll close this and make a separate PR for that

@Moggach Moggach merged commit 46440ec into production Sep 4, 2024
1 check failed
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