Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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.