diff --git a/composer.lock b/composer.lock index 09f2403..e259820 100644 --- a/composer.lock +++ b/composer.lock @@ -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", diff --git a/config.php b/config.php index 5880d45..0f8717d 100644 --- a/config.php +++ b/config.php @@ -1,5 +1,9 @@ [ 'address' => (string)getenv('SERVER_ADDRESS'), @@ -30,7 +34,8 @@ return [ ] ], 'serialization' => [ - 'serialization_interval' => 36000 + 'serialization_interval' => 300, + 'cleanup_before_serialization' => true, ], ], 'api' => [