Merge branch 'w46_MDL-30349_m22_filestatcaching' of git://github.com/skodak/moodle
This commit is contained in:
@@ -81,6 +81,9 @@ require_once('Minify.php');
|
||||
$theme = theme_config::load($themename);
|
||||
|
||||
if ($rev > -1) {
|
||||
// note: cache reset might have purged our cache dir structure,
|
||||
// make sure we do not use stale file stat cache in the next check_dir_exists()
|
||||
clearstatcache();
|
||||
check_dir_exists(dirname($candidate));
|
||||
$fp = fopen($candidate, 'w');
|
||||
fwrite($fp, minify($theme->javascript_files($type)));
|
||||
|
||||
Reference in New Issue
Block a user