mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-28 18:02:07 +02:00
- bugfix error muting was not implemented for cache locking
This commit is contained in:
@@ -227,7 +227,9 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource {
|
||||
} else {
|
||||
clearstatcache();
|
||||
}
|
||||
Smarty::muteExpectedErrors();
|
||||
$t = @filemtime($cached->lock_id);
|
||||
Smarty::unmuteExpectedErrors();
|
||||
return $t && (time() - $t < $smarty->locking_timeout);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user