WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This following lines causes 5mb memory consumption. It appears large to me.

if ( ! class_exists( 'SimplePie' ) ) include_once( ABSPATH . WPINC . '/class-feed.php' );        
new SimplePie();

I'm using php 5.2.4, WordPress 3.5.1.

With PHP 5.4.3, the memory usage with the above lines becomes 2.25mb.

I'd like to know a way to reduce it if there is a workaround.

share|improve this question
up vote 2 down vote accepted

This is a known issue. It is caused by a bug in PHP 5.2 and is fixed in PHP 5.3.

You need to manually call the destructor method before unsetting the $feed and $item variables.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.