Merge pull request #12 from xtrime-ru/session_optimization

Add setting to control cleanup before serialization
This commit is contained in:
Daniil Gentili 2019-06-23 20:36:45 +02:00 committed by GitHub
commit 0c28cca665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -411,6 +411,10 @@ Serialization settings
Default: 30
Description: Serialization will be made automatically every N seconds
### `$settings['serialization']['cleanup_before_serialization']`
Default: false
Description: Remove data from internal database to cleanup memory and reduce `*.madeline` file size (may cause MadelineProto errors).
<hr>
@ -431,4 +435,4 @@ The settings array can be accessed and modified in the instantiated class by acc
$MadelineProto->settings['updates']['handle_updates'] = true; // reenable update fetching
```
<a href="https://docs.madelineproto.xyz/docs/SELF.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/SELF.html">Next section</a>