]> git.mjollnir.org Git - moodle.git/commitdiff
Added enablerecordcache setting to control the get_record() cache.
authorstronk7 <stronk7>
Mon, 30 Oct 2006 15:58:46 +0000 (15:58 +0000)
committerstronk7 <stronk7>
Mon, 30 Oct 2006 15:58:46 +0000 (15:58 +0000)
Note that some parts of Moodle can enable/disable it selectively.

Merged from MOODLE_17_STABLE

admin/settings/server.php

index d2800296b18f3a67db8cc3234568da18343c9afc..9a62bc5fa4ad901181798f42e83d1263cd5f959e 100644 (file)
@@ -176,6 +176,11 @@ $ADMIN->add('server', new admin_externalpage('environment', get_string('environm
 $ADMIN->add('server', new admin_externalpage('phpinfo', get_string('phpinfo'), "$CFG->wwwroot/$CFG->admin/phpinfo.php"));
 
 
+// "performance" settingpage
+$temp = new admin_settingpage('performance', get_string('performance', 'admin'));
+$temp->add(new admin_setting_configcheckbox('enablerecordcache', get_string('enablerecordcache', 'admin'), get_string('configenablerecordcache', 'admin'), 1));
+$ADMIN->add('server', $temp);
+
 if (file_exists("$CFG->dirroot/$CFG->admin/mysql/frame.php")) {
     $ADMIN->add('server', new admin_externalpage('database', get_string('managedatabase'), "$CFG->wwwroot/$CFG->admin/mysql/frame.php"));
 }