WordPress / WordPress/php-toolkit
[Data Liberation] Set WP_XML_Processor memory limit cap
Open
@zaerl is already working on this.
Since Jan 8, 2025.
- Dominant language
- PHP
- Stars
- 61
- Forks
- 21
- Avg merge
- 19h 34m
- Merged PRs (30d)
- 7
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.