mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
- bugfix concurrent cache updates could create a warning (Forum Topic 21403)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
===== trunk =====
|
||||
12.04.2012
|
||||
- Smarty did eat the linebreak after the <?xml...?> closing tag (Issue 93)
|
||||
- bugfix Smarty did eat the linebreak after the <?xml...?> closing tag (Issue 93)
|
||||
- bugfix concurrent cache updates could create a warning (Forum Topic 21403)
|
||||
|
||||
08.04.2012
|
||||
- bugfix "\\" was not escaped correctly when generating nocache code (Forum Topic 21364)
|
||||
|
@@ -100,10 +100,12 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource {
|
||||
public function writeCachedContent(Smarty_Internal_Template $_template, $content)
|
||||
{
|
||||
if (Smarty_Internal_Write_File::writeFile($_template->cached->filepath, $content, $_template->smarty) === true) {
|
||||
$_template->cached->timestamp = filemtime($_template->cached->filepath);
|
||||
$_template->cached->timestamp = @filemtime($_template->cached->filepath);
|
||||
$_template->cached->exists = !!$_template->cached->timestamp;
|
||||
if ($_template->cached->exists) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user