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

Batch the cache query #12

Open
NickGreen opened this issue Jun 7, 2018 · 0 comments
Open

Batch the cache query #12

NickGreen opened this issue Jun 7, 2018 · 0 comments

Comments

@NickGreen
Copy link
Collaborator

If a site has a large number of unended subscriptions, there could be performance issues when activating the plugin.

wcs_get_subscriptions can be run in batches of 50 or so to prevent that: https://github.com/Prospress/woocommerce-subscriptions-restrict-product/blob/master/wcs-restrict-product.php#L98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant