Skip to content

Commit

Permalink
Minor wording updates for grade cache settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mckeownp committed Jul 17, 2024
1 parent 4e07518 commit 45ebaa3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lang/en/qtype_coderunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -1344,4 +1344,4 @@ function should be applied, e.g. <code>{{STUDENT_ANSWER | e(\'py\')}}</code> is

$string['xmlcoderunnerformaterror'] = 'XML format error in coderunner question';
$string['enablegradecache'] = 'Enable reading/writing of job,result pairs from/to the Coderunner grading cache.';
$string['enablegradecache_desc'] = 'The cache is a local Moodle cache (currently file cache) to store results of grading questions. Mainly to speed up regrading by using cached results for jobe runs where the same jobe submission has already been graded. Currently WS jobs (eg, try-it boxes and scratchpad runs) will never be cached. NOTE: If you turn off grade caching then it is usually good to empty the Coderunner grade cache before you turn it on again so you have a known state for the cache. You should also clear the cache if you change the Jobe back-end (eg, installing a new version of Python there) as results may now differ from what is in the cache.';
$string['enablegradecache_desc'] = 'Experimental. The cache is a local Moodle cache (currently file cache) to store results of grading questions. Mainly to speed up regrading by using cached results for jobe runs where the same jobe submission has already been graded. Currently WS jobs (eg, try-it boxes and scratchpad runs) will never be cached. NOTE: If you turn off grade caching then it is usually good to empty the Coderunner grade cache before you turn it on again so you have a known state for the cache. You should also clear the cache if you change the Jobe back-end (eg, installing a new version of Python there) as results may now differ from what is in the cache.';
15 changes: 8 additions & 7 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@
constants::JOBE_HOST_DEFAULT_API_KEY
));

$settings->add(new admin_setting_configcheckbox(
"qtype_coderunner/enablegradecache",
get_string('enablegradecache', 'qtype_coderunner'),
get_string('enablegradecache_desc', 'qtype_coderunner'),
false
));


$settings->add(new admin_setting_configtext(
"qtype_coderunner/ideone_user",
get_string('ideone_user', 'qtype_coderunner'),
Expand All @@ -86,13 +94,6 @@
));


$settings->add(new admin_setting_configcheckbox(
"qtype_coderunner/enablegradecache",
get_string('enablegradecache', 'qtype_coderunner'),
get_string('enablegradecache_desc', 'qtype_coderunner'),
false
));

$settings->add(new admin_setting_configtext(
"qtype_coderunner/ideone_password",
get_string('ideone_pass', 'qtype_coderunner'),
Expand Down

0 comments on commit 45ebaa3

Please sign in to comment.