mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-14027 cron sometimes hangs in rss_client block; merged from MOODLE_19_STABLE
This commit is contained in:
parent
5cfefc9b02
commit
df61da5331
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user