mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-32825 try to improve atomicity of cache file operations in themes and javascript
This commit is contained in:
parent
4dd63b6d70
commit
979d320722
6 changed files with 105 additions and 39 deletions
|
@ -118,4 +118,11 @@ if ($type === 'editor') {
|
|||
$cssfile = "$CFG->cachedir/theme/$themename/css/all.css";
|
||||
css_store_css($theme, $cssfile, $allfiles);
|
||||
}
|
||||
|
||||
// verify nothing failed in cache file creation
|
||||
clearstatcache();
|
||||
if (!file_exists($candidatesheet)) {
|
||||
css_send_css_not_found();
|
||||
}
|
||||
|
||||
css_send_cached_css($candidatesheet, $etag);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue