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

[Data Liberation] Set WP_XML_Processor memory limit cap #2108

Open
zaerl opened this issue Dec 20, 2024 · 0 comments
Open

[Data Liberation] Set WP_XML_Processor memory limit cap #2108

zaerl opened this issue Dec 20, 2024 · 0 comments

Comments

@zaerl
Copy link
Collaborator

zaerl commented Dec 20, 2024

The default XML process memory budget is one GB: https://github.com/WordPress/wordpress-playground/blob/trunk/packages/playground/data-liberation/src/xml-api/WP_XML_Processor.php#L596

I think it's pretty generous as an amount and does not take into consideration memory_limit. We can make it customizable for the final user as an "advanced feature" and have a cap on current machine resources to avoid PHP "allowed memory size..." fatal error.

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

No branches or pull requests

1 participant