Disable Magpie Cache in WordPress

Using RSS in WordPress can have a lot of benefits, however, there is also one major drawback. It will cause severe bloating of the WordPress Options table, and if the WordPress Options table is too large it will slow a blog down to a crawl.

To solve this problem you can clean out the RSS Hash entries using a plugin such as Clean Options. This plugin will also help you find and remove all those Orphaned records created by plugins that do not remove their own entries.

To stop Magpie from creating these entries in the future you can disable Magpie Cache by inserting the following into your WordPress Theme function file.

define(‘MAGPIE_CACHE_ON’, 0);

4 thoughts on “Disable Magpie Cache in WordPress

  1. AFAIK the only real concern involved with disabling the Magpie RSS Cache is the slowdown/timeout risk inherent with needing to fetch remote data. Ironically, the more feeds you’re showing the faster the cache will build, but the more likely it is you should be caching. I think it’s a wise thing to periodically remove the old stale content, but leave the current fresher feed content in the cache.

  2. actually I had this in one plugin, which is why –

    //define('MAGPIE_CACHE_ON', false); // Cache off
    define('MAGPIE_CACHE_AGE', '60*60'); // in sec, one hour

Leave a Reply

Your email address will not be published. Required fields are marked *