Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/http-kernel/CacheWarmer/CacheWarmer.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
18 */ | 18 */ |
19 abstract class CacheWarmer implements CacheWarmerInterface | 19 abstract class CacheWarmer implements CacheWarmerInterface |
20 { | 20 { |
21 protected function writeCacheFile($file, $content) | 21 protected function writeCacheFile($file, $content) |
22 { | 22 { |
23 $tmpFile = @tempnam(dirname($file), basename($file)); | 23 $tmpFile = @tempnam(\dirname($file), basename($file)); |
24 if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $file)) { | 24 if (false !== @file_put_contents($tmpFile, $content) && @rename($tmpFile, $file)) { |
25 @chmod($file, 0666 & ~umask()); | 25 @chmod($file, 0666 & ~umask()); |
26 | 26 |
27 return; | 27 return; |
28 } | 28 } |