. /** * Task to cleanup old question statistics cache. * * This task is no longer required. It has been kept on stable branches for backwards-compatibility, * and will be removed completely in Moodle 4.3. * * @package core * @copyright 2019 Simey Lameze * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core\task; defined('MOODLE_INTERNAL') || die(); /** * A task to cleanup old question statistics cache. * * This task is no longer required. It has been kept on stable branches for backwards-compatibility, * and will be removed completely in Moodle 4.3. * * @copyright 2019 Simey Lameze * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class question_stats_cleanup_task extends scheduled_task { /** * Get a descriptive name for this task (shown to admins). * * @return string */ public function get_name() { return get_string('taskquestionstatscleanupcron', 'admin'); } /** * Perform the cleanup task. */ public function execute() { mtrace("\nThis task is no longer required. If it is still running, please disable. Will be removed in Moodle 4.3.", ''); } }