mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-14027 cron sometimes hangs in rss_client block; merged from MOODLE_19_STABLE
This commit is contained in:
parent
5cfefc9b02
commit
df61da5331
1 changed files with 3 additions and 0 deletions
|
@ -330,6 +330,9 @@
|
||||||
mtrace(' ' . $rec->url . ' ', '');
|
mtrace(' ' . $rec->url . ' ', '');
|
||||||
/// Fetch the rss feed, using standard magpie caching
|
/// Fetch the rss feed, using standard magpie caching
|
||||||
/// so feeds will be renewed only if cache has expired
|
/// 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)) {
|
if ($rss = fetch_rss($rec->url)) {
|
||||||
mtrace ('ok');
|
mtrace ('ok');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue