MDL-28147 do not double cache theme css/js

This commit is contained in:
Petr Skoda 2011-07-04 11:29:23 +02:00
parent 81f8e0f8a0
commit e1c2a211f2
2 changed files with 4 additions and 4 deletions

View file

@ -118,12 +118,11 @@ function send_uncached_js($js) {
} }
function minify($files) { function minify($files) {
global $CFG;
if (0 === stripos(PHP_OS, 'win')) { if (0 === stripos(PHP_OS, 'win')) {
Minify::setDocRoot(); // IIS may need help Minify::setDocRoot(); // IIS may need help
} }
Minify::setCache('', true); // disable all caching, we do it in moodle
Minify::setCache(null, false);
$options = array( $options = array(
'bubbleCssImports' => false, 'bubbleCssImports' => false,

View file

@ -160,7 +160,8 @@ function minify($files) {
if (0 === stripos(PHP_OS, 'win')) { if (0 === stripos(PHP_OS, 'win')) {
Minify::setDocRoot(); // IIS may need help Minify::setDocRoot(); // IIS may need help
} }
Minify::setCache('', true); // disable all caching, we do it in moodle
Minify::setCache(null, false);
$options = array( $options = array(
'bubbleCssImports' => false, 'bubbleCssImports' => false,