Skip to content
Snippets Groups Projects
Unverified Commit 60aaebc6 authored by David Pesce's avatar David Pesce Committed by GitHub
Browse files

Merge pull request #180 from xAPI-vle/background_by_default

feat: Defaults to using background mode to close #165.
parents 45ec8894 fb162f38
No related branches found
No related tags found
No related merge requests found
# Configure the plugin
**Note that by default the plugin now runs in background mode via a cron task to avoid blocking page responses. This can be changed on the configuration page.**
1. Set your “endpoint” to your LRS endpoint (e.g. “<http://your.lrs/xAPI>”).
1. Set your “username” to your LRS basic auth key/username (e.g. “d416e6220812740d3922eb09813ebb4163e8eb3e”).
1. Set your “password” to your LRS basic auth secret/password (e.g. “bc7e0a2edd5d1969b6d774e679d4eb4e7a35be13”).
......
......@@ -28,7 +28,7 @@ $string['username'] = 'Username';
$string['xapisettingstitle'] = 'Logstore xAPI Settings';
$string['backgroundmode'] = 'Send statements by scheduled task?';
$string['backgroundmode_desc'] = 'This will force Moodle to send the statements to the LRS in the background,
via a cron task. This will make the process less close to real time, but will help to prevent unpredictable
via a cron task to avoid blocking page responses. This will make the process less close to real time, but will help to prevent unpredictable
Moodle performance linked to the performance of the LRS.';
$string['maxbatchsize'] = 'Maximum batch size';
$string['maxbatchsize_desc'] = 'Statements are sent to the LRS in batches. This setting controls the maximum number of
......
......@@ -33,7 +33,7 @@ if ($hassiteconfig) {
// Switch background batch mode on.
$settings->add(new admin_setting_configcheckbox('logstore_xapi/backgroundmode',
get_string('backgroundmode', 'logstore_xapi'),
get_string('backgroundmode_desc', 'logstore_xapi'), 0));
get_string('backgroundmode_desc', 'logstore_xapi'), 1));
$settings->add(new admin_setting_configtext('logstore_xapi/maxbatchsize',
get_string('maxbatchsize', 'logstore_xapi'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment