diff --git a/admin/settings/appearance.php b/admin/settings/appearance.php index 5e8ebd7f99e..41a172abc1e 100644 --- a/admin/settings/appearance.php +++ b/admin/settings/appearance.php @@ -120,6 +120,7 @@ if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page $temp->add(new admin_setting_configcheckbox('enableajax', get_string('enableajax', 'admin'), get_string('configenableajax', 'admin'), 1)); $temp->add(new admin_setting_configcheckbox('useexternalyui', get_string('useexternalyui', 'admin'), get_string('configuseexternalyui', 'admin'), 0)); $temp->add(new admin_setting_configcheckbox('yuicomboloading', get_string('yuicomboloading', 'admin'), get_string('configyuicomboloading', 'admin'), 1)); + $temp->add(new admin_setting_configcheckbox('cachejs', get_string('cachejs', 'admin'), get_string('cachejs_help', 'admin'), 1)); $temp->add(new admin_setting_configcheckbox('disablecourseajax', get_string('disablecourseajax', 'admin'), get_string('configdisablecourseajax', 'admin'), isset($CFG->disablecourseajax) ? 1 : empty($CFG->enableajax))); $ADMIN->add('appearance', $temp); diff --git a/lang/en/admin.php b/lang/en/admin.php index 57ccf6abae4..027aaba7ce9 100755 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -76,6 +76,8 @@ $string['bookmarkadded'] = 'Bookmark added.'; $string['bookmarkalreadyexists'] = 'You have already bookmarked this page.'; $string['bookmarkdeleted'] = 'Bookmark deleted.'; $string['bookmarkthispage'] = 'bookmark this page'; +$string['cachejs'] = 'Cache javascipt'; +$string['cachejs_help'] = 'Javascript caching and compression greatly improves page loading performance. it is strongly recommended for production sites. Developers will probably want to disable this feature.'; $string['cachetext'] = 'Text cache lifetime'; $string['cachetype'] = 'Cache Type'; $string['calendarexportsalt'] = 'Calendar export salt';