From 4a575a657076f9e40748f38df2ef936967994eb4 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 30 Oct 2006 15:58:46 +0000 Subject: [PATCH] Added enablerecordcache setting to control the get_record() cache. Note that some parts of Moodle can enable/disable it selectively. Merged from MOODLE_17_STABLE --- admin/settings/server.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin/settings/server.php b/admin/settings/server.php index d2800296b1..9a62bc5fa4 100644 --- a/admin/settings/server.php +++ b/admin/settings/server.php @@ -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")); } -- 2.39.5