Skip to content

This plugin reduces the memory usage of the XML-RPC Endpoint in WordPress by introducing a new XML-RPC parser

Notifications You must be signed in to change notification settings

daniloercoli/WordPress-streaming-xml-rpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:  http://daniloercoli.wordpress.com/2012/04/18/xml-rpc-endpoint-in-wordpress/ ‎

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.

About

This plugin reduces the memory usage of the XML-RPC Endpoint in WordPress by introducing a new XML-RPC parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages