Prevent inconstitent /data/trafic_limiter.php due to file read while writing
(cherry picked from commit 71a7f6adaea9a86a84fa8ebbcb9e5c506a785527) Conflicts: index.php
This commit is contained in:
parent
5b54ca34ad
commit
4f72f04eda
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ abstract class persistence
|
|||
{
|
||||
self::_initialize();
|
||||
$file = self::$_path . '/' . $filename;
|
||||
file_put_contents($file, $data);
|
||||
file_put_contents($file, $data, LOCK_EX);
|
||||
chmod($file, 0705);
|
||||
return $file;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue