This plugin reduces the memory usage of the XML-RPC Endpoint in WordPress by introducing a new XML-RPC parser
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This plugin introduces a new implementation of the XML-RPC parser by using a "streaming" XML parser
and reduces the memory usage during the parsing process of XML-RPC requests in WordPress.
Ref: ‎

It must have access to the sys tmp folder in which it stores temporary files.

The plugins does the following:
- Gets the php input stream (php://input)
- Reads from the input stream, and parse the content by chunck (Get rid of $HTTP_RAW_POST_DATA).
- Doesn't store any partial values, or the final parsed value in memory. It uses a tmp file in the tmp directory (Only for base64 data).
- Changes the function mw_newMediaObject to use a path to the input file on disk rather accept the whole content as parameter.
- Introduces a new function that copy the uploaded file to the right location.