Skip to content

Commit

Permalink
MDL-28147 do not double cache theme css/js
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 4, 2011
1 parent 81f8e0f commit e1c2a21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions theme/javascript.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,11 @@ function send_uncached_js($js) {
}

function minify($files) {
global $CFG;

if (0 === stripos(PHP_OS, 'win')) {
Minify::setDocRoot(); // IIS may need help
}
Minify::setCache('', true);
// disable all caching, we do it in moodle
Minify::setCache(null, false);

$options = array(
'bubbleCssImports' => false,
Expand Down
3 changes: 2 additions & 1 deletion theme/styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ function minify($files) {
if (0 === stripos(PHP_OS, 'win')) {
Minify::setDocRoot(); // IIS may need help
}
Minify::setCache('', true);
// disable all caching, we do it in moodle
Minify::setCache(null, false);

$options = array(
'bubbleCssImports' => false,
Expand Down

0 comments on commit e1c2a21

Please sign in to comment.