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: RSS Widget, Wordpress

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!)
Hello McPace,
Thanks for pointing that out. If that link ever gets updated I’ll be sure to update it here.
God Bless!
Jon
**Note – I checked the village-idiot link on 12/2/2011 and it was working again!
[...] 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 [...]
Hi,
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.
Hello Ahmed!
I see that you figured this out on your blog.
For anyone else passing by, Ahmed wrote his solution to the problem here: http://www.hilmi.eu/?p=67
Thanks Ahmed!
[...] Blog entry on how to modify the fetch RSS cache frequency: read post [...]
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!
[...] 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 [...]
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
Glad I could help!
[...] encontré RSS Widget doesn’t update, desde el cual llegué a Increase the WordPress RSS Widget Refresh Rate, donde explican que hay que [...]
Hi All,
after an update of the theme, the solution is gone again. Any idea how to make it more permanent?
thanks in advance!
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!
[...] 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 [...]