Boosting RSS block and messaging performance

Boosting RSS block and messaging performance

by Mark Stevens -
Number of replies: 7
I and others love the RSS block and messaging, but some in our site think the blocks slow down the server too much. Can anyone give advice on how to optimize performance of the RSS block and messaging?  Thanks for any help smile

Moodle 1.5.2 (2005060220)
Win2003 dual 1.7 cpu, 1 gb ram
newish php and mysql

(besides the obvious:  use a Linux flavor smile
Average of ratings: -
In reply to Mark Stevens

Re: Boosting RSS block and messaging performance

by koen roggemans -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
I'm affraid the other obvious: buy more RAM...
In reply to koen roggemans

Re: Boosting RSS block and messaging performance

by Daryl Hawes -
For RSS block performance you have a few options.
1) increase the cache time. hold onto your feeds longer. the news will be more "stale" potentially but you'll have to read from a remote site less often.
2) setup a cron job to load your site pages. optionally mod the block to only refresh when a special settings passed from the cron job you create is passed. This way an end user never has to wait for the rss feed to be refreshed from the remote site at all. they always get a cached setting.
In reply to Daryl Hawes

Re: Boosting RSS block and messaging performance

by Mark Stevens -
Thanks Koen and Daryl.  We are already looking into a new server with more RAM, and I think I'll get some students to work on Daryl's suggestion.  That would be a great option for the block... Thanks again.
In reply to Daryl Hawes

Re: Boosting RSS block and messaging performance

by Barron Koralesky -


Daryl, how do you increase the cache time for the RSS feeds?  How often are they checked by default?


In reply to Barron Koralesky

Re: Boosting RSS block and messaging performance

by Daryl Hawes -
You can change the cache time by going to the admin area, doing global block admin, then choosing config for the RSS feed. Change the "timeoutdesc" option. It defaults to 10 minutes. (So every 10 minutes someone who loads your web page will potentially wait a bit longer as the remote feed is loaded before your page is loaded and displayed to the user.)
Daryl
In reply to Daryl Hawes

Re: Boosting RSS block and messaging performance

by Barron Koralesky -

Do you mean "block_rss_timeout:"?  I don't have a "timeoutdesc" and mine seems to be at 30. 

If that is the time in minutes before the RSS feed is refreshed, I don't see why 120 or 180 wouldn't be fine...




In reply to Barron Koralesky

Re: Boosting RSS block and messaging performance

by Daryl Hawes -
You are correct on all counts.