I noticed on my wordpress blog that the RSS widgets were really, really slow to update. I wanted a news section or to display articles from one of my other sites but they took so long!

Here is the solution:

The default frequency with which the RSS widget updates is apparently every 12 hours (http://www.village-idiot.org/archives/2009/08/04/fix-the-rss-update-time-on-the-wordpress-rss-widget).

How does one change that?

By adding the following code to the function.php file of your current theme:

add_filter( 'wp_feed_cache_transient_lifetime', create_function('$a', 'return 1800;') );

The number “1800″ represents 1800 seconds or 30 minutes.

I did this and it worked fine!

Let me know if you have any problems.

*UPDATE* Here is a post that explains the nitty gritty of this a little bit more: http://casabona.org/blog/2009/08/07/qt-increase-the-wordpress-rss-widget-refresh-rate/

Hat tip to Ahmed for finding this more thorough information!

Tags: ,

14 Comments to “RSS Widget doesn’t update”

  1. McPace says:

    THANK YOU!!! http://www.village-idiot.org/a.....rss-widget is a dead link, I AM SO GLAD YOU SAVED THE FIX!!!

    (Note from Site Editor on 12/2/2011 – The village-idiot.org link is now working again!)

  2. Jon says:

    Hello McPace,

    Thanks for pointing that out. If that link ever gets updated I’ll be sure to update it here.

    God Bless!


    **Note – I checked the village-idiot link on 12/2/2011 and it was working again!

  3. [...] I noticed the feed updates can still be rather slow sometimes. After a lot of investigating I found out the fetch_feed() function actually uses caching itself, and by default it seems to be set to very [...]

  4. Ahmed says:


    Where exactly do you put:

    add_filter( ‘wp_feed_cache_transient_lifetime’, create_function(‘$fixrss’, ‘return 1800;’) );

    in the function.php , as what ever I do, it seems to just generate errors.

  5. [...] Blog entry on how to modify the fetch RSS cache frequency: read post [...]

  6. asceta says:

    your solution is great. I’ve used it for my blogs and it working fine.

    Now I’m going to make my own mod for RSS widget… :)

    Thank you!

  7. [...] The incorrect comment count does, indeed, seem to be the cache on fetch_feed. The fix (which I found here) is to add the following to your functions.php file (The “600″ represents the number of [...]

  8. Tomas M. says:

    Thanks, buddy!

    That’s what I was looking for. First I thought that my Yahoo! pipe was not working correctly, but then I checked with FireFox and pipe feed was up to date, then I understood that’s something in the guts of WP :)

  9. [...] encontré RSS Widget doesn’t update, desde el cual llegué a Increase the WordPress RSS Widget Refresh Rate, donde explican que hay que [...]

  10. diza says:

    Hi All,

    after an update of the theme, the solution is gone again. Any idea how to make it more permanent?

    thanks in advance!

    • Jon says:

      Hello diza!

      I don’t know how to make it more permanent. You could try searching for a plugin that does it for you. That would make it more permanent.

      Let us know if you find one!

  11. [...] source for this is http://www.newtotheweb.net/2009/10/25/rss-widget-doesnt-update/. While the solution is found elsewhere, this also has an explanation. Share [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>