Skip to content

Commit

Permalink
Merge branch 'MDL-72135-master' of https://github.com/golenkovm/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols authored and ilyatregubov committed Aug 19, 2021
2 parents 70a2975 + bdba9f6 commit c65ea81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions auth/mnet/classes/task/cron_task.php
Expand Up @@ -42,11 +42,6 @@ public function execute() {
require_once($CFG->dirroot . '/auth/mnet/auth.php');
$mnetplugin = new \auth_plugin_mnet();
$mnetplugin->keepalive_client();

$random100 = rand(0,100);
if ($random100 < 10) {
$longtime = time() - DAYSECS;
$DB->delete_records_select('mnet_session', "expires < ?", [$longtime]);
}
$DB->delete_records_select('mnet_session', "expires < ?", [time() - DAYSECS]);
}
}
2 changes: 1 addition & 1 deletion auth/mnet/db/tasks.php
Expand Up @@ -25,7 +25,7 @@
array(
'classname' => '\auth_mnet\task\cron_task',
'blocking' => 0,
'minute' => '*',
'minute' => '*/10',
'hour' => '*',
'day' => '*',
'month' => '*',
Expand Down
2 changes: 1 addition & 1 deletion auth/mnet/version.php
Expand Up @@ -24,6 +24,6 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2021052500; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2021071200; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2021052500; // Requires this Moodle version.
$plugin->component = 'auth_mnet'; // Full name of the plugin (used for diagnostics)

0 comments on commit c65ea81

Please sign in to comment.