From: skodak Date: Sun, 23 Mar 2008 16:24:29 +0000 (+0000) Subject: MDL-14027 cron sometimes hangs in rss_client block; merged from MOODLE_19_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=df61da5331aa865894a900e15b3c855c40648f49;p=moodle.git MDL-14027 cron sometimes hangs in rss_client block; merged from MOODLE_19_STABLE --- diff --git a/blocks/rss_client/block_rss_client.php b/blocks/rss_client/block_rss_client.php index 41e42aac27..c4f7527c85 100644 --- a/blocks/rss_client/block_rss_client.php +++ b/blocks/rss_client/block_rss_client.php @@ -330,6 +330,9 @@ mtrace(' ' . $rec->url . ' ', ''); /// Fetch the rss feed, using standard magpie caching /// so feeds will be renewed only if cache has expired + // sometimes the cron times out on moodle.org during fetching, + // there is a 5s limit in magpie which should work, but does not sometimes :-( + @set_time_limit(60); if ($rss = fetch_rss($rec->url)) { mtrace ('ok'); } else {