83f215850e
Based on a patch by Davo Smith of Synergy Learning RSS feeds can fail, either permanently or temporarily. After this patch if a feed fails it will not be tried again in the next cron run. If it continues to fail the delay between tries will be increased. When a feed succeeds it will go back to being fetched on each cron run. This should make the CRON process for RSS feeds finish faster when there are lots of invalid feeds.
31 lines
1.3 KiB
PHP
31 lines
1.3 KiB
PHP
<?php
|
|
// This file is part of Moodle - http://moodle.org/
|
|
//
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
/**
|
|
* Version details
|
|
*
|
|
* @package block_rss_client
|
|
* @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
|
|
defined('MOODLE_INTERNAL') || die();
|
|
|
|
$plugin->version = 2015071700; // The current plugin version (Date: YYYYMMDDXX)
|
|
$plugin->requires = 2015050500; // Requires this Moodle version
|
|
$plugin->component = 'block_rss_client'; // Full name of the plugin (used for diagnostics)
|
|
$plugin->cron = 300; // Set min time between cron executions to 300 secs (5 mins)
|