New setting to cleanup madeline

This commit is contained in:
Alexander Pankratov 2019-06-22 20:16:31 +03:00
parent dccd1ab201
commit 963c4d9320
2 changed files with 8 additions and 3 deletions

4
composer.lock generated
View File

@ -1268,7 +1268,7 @@
"source": {
"type": "git",
"url": "https://github.com/xtrime-ru/MadelineProto.git",
"reference": "2a00bba1fbf78d49050d003d0b5b53fc71720018"
"reference": "09512b4ab58a48cf24a5022811b2130309b62893"
},
"require": {
"amphp/amp": "^2.0",
@ -1339,7 +1339,7 @@
"telegram",
"video"
],
"time": "2019-06-21T18:22:59+00:00"
"time": "2019-06-22T17:03:46+00:00"
},
{
"name": "danog/magicalserializer",

View File

@ -1,5 +1,9 @@
<?php
if (getenv('SWOOLE_SERVER_ADDRESS')) {
throw new UnexpectedValueException('Please, update .env file! See .env.example');
}
return [
'server' => [
'address' => (string)getenv('SERVER_ADDRESS'),
@ -30,7 +34,8 @@ return [
]
],
'serialization' => [
'serialization_interval' => 36000
'serialization_interval' => 300,
'cleanup_before_serialization' => true,
],
],
'api' => [