Merge branch '12300' into 12400
This commit is contained in:
commit
5edb042dd3
@ -142,7 +142,7 @@ class JsonDb extends \Prowebcraft\Dot
|
||||
*/
|
||||
public function save()
|
||||
{
|
||||
$lenght = strlen(json_encode($this->data));
|
||||
$lenght = strlen(json_encode($this->data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | LOCK_EX));
|
||||
$try = 0;
|
||||
while ($try < 5) {
|
||||
$written = file_put_contents($this->db, json_encode($this->data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | LOCK_EX)); // Multi user get a locker
|
||||
|
Loading…
Reference in New Issue
Block a user