better json save
This commit is contained in:
parent
0a8a8ecd72
commit
508ec87c96
@ -142,7 +142,7 @@ class JsonDb extends \Prowebcraft\Dot
|
|||||||
*/
|
*/
|
||||||
public function save()
|
public function save()
|
||||||
{
|
{
|
||||||
$v = json_encode($this->data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | LOCK_EX);
|
$v = json_encode($this->data, JSON_UNESCAPED_UNICODE | LOCK_EX);
|
||||||
$l = strlen($v);
|
$l = strlen($v);
|
||||||
$t = 0;
|
$t = 0;
|
||||||
while ($t < 5) {
|
while ($t < 5) {
|
||||||
|
Loading…
Reference in New Issue
Block a user