Merge pull request #12 from xtrime-ru/session_optimization
Add setting to control cleanup before serialization
This commit is contained in:
commit
0c28cca665
|
@ -411,6 +411,10 @@ Serialization settings
|
||||||
Default: 30
|
Default: 30
|
||||||
Description: Serialization will be made automatically every N seconds
|
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>
|
<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
|
$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>
|
||||||
|
|
Loading…
Reference in New Issue