Skip to content

Commit

Permalink
Merge pull request #12 from xtrime-ru/session_optimization
Browse files Browse the repository at this point in the history
Add setting to control cleanup before serialization
  • Loading branch information
danog committed Jun 23, 2019
2 parents 02967b3 + 0fa530e commit 0c28cca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/docs/SETTINGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand All @@ -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>

0 comments on commit 0c28cca

Please sign in to comment.