Permalink
Browse files

MDL-28147 do not double cache theme css/js

  • Loading branch information...
1 parent 6893e10 commit 9a380fbb53429713b3c422a3146456dc97205329 @skodak skodak committed with stronk7 Jul 4, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −3 theme/javascript.php
  2. +2 −1 theme/styles.php
@@ -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,
View
@@ -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,

0 comments on commit 9a380fb

Please sign in to comment.