WordPress / WordPress/php-toolkit

[Data Liberation] Set WP_XML_Processor memory limit cap

Open
#215 0 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.