MDL-25290 cache: Cache API integration with core

This commit is contained in:
Sam Hemelryk
2012-10-08 09:53:50 +13:00
parent 8139ad13a5
commit d6a1f63bdd
9 changed files with 199 additions and 0 deletions
+10
View File
@@ -216,6 +216,16 @@ $temp->add(new admin_setting_configselect('memcachedpconn', new lang_string('mem
array( '0' => new lang_string('no'),
'1' => new lang_string('yes'))));
*/
$ADMIN->add('server', new admin_category('cache', new lang_string('caching', 'cache')));
$ADMIN->add('cache', new admin_externalpage('cacheconfig', get_string('cacheconfig', 'cache'), new moodle_url('/cache/admin.php')));
$ADMIN->add('cache', new admin_externalpage('cachetestperformance', get_string('testperformance', 'cache'), new moodle_url('/cache/testperformance.php')));
foreach (get_plugin_list_with_file('cache', 'settings.php') as $plugin => $path) {
$settings = new admin_settingpage('cache_'.$plugin.'_settings', new lang_string('pluginname', 'cache_'.$plugin));
require_once($path);
$ADMIN->add('cache', $settings);
}
$ADMIN->add('server', $temp);