diff --git a/config-dist.php b/config-dist.php index e82d7bd38c3..eb0ab29c901 100644 --- a/config-dist.php +++ b/config-dist.php @@ -234,6 +234,10 @@ $CFG->admin = 'admin'; // '/filedir' => '/var/www/moodle/filedir', // for custom $CFG->filedir locations // ); // +// YUI caching may be sometimes improved by slasharguments: +// $CFG->yuislasharguments = 1; +// Some servers may need a special rewrite rule to work around internal path length limitations: +// RewriteRule (^.*/theme/yui_combo\.php)(/.*) $1?file=$2 // // // This setting will prevent the 'My Courses' page being displayed when a student diff --git a/lib/outputrequirementslib.php b/lib/outputrequirementslib.php index aa8755e48b8..c4fdd8f200c 100644 --- a/lib/outputrequirementslib.php +++ b/lib/outputrequirementslib.php @@ -152,7 +152,8 @@ class page_requirements_manager { public function __construct() { global $CFG; - $sep = empty($CFG->slasharguments) ? '?' : '/'; + // You may need to set up URL rewrite rule because oversized URLs might not be allowed by web server. + $sep = empty($CFG->yuislasharguments) ? '?' : '/'; require_once("$CFG->libdir/yui/phploader/phploader/loader.php");