Decrease default cache_ttl
This commit is contained in:
parent
fea71efc99
commit
d0e57f2535
@ -16,7 +16,7 @@ trait ArrayCacheTrait
|
||||
* @var array
|
||||
*/
|
||||
protected array $cache = [];
|
||||
protected string $ttl = '+1 day';
|
||||
protected string $ttl = '+5 minutes';
|
||||
private string $ttlCheckInterval = '+1 minute';
|
||||
private int $nextTtlCheckTs = 0;
|
||||
|
||||
|
@ -1323,7 +1323,7 @@ class MTProto extends AsyncConstruct implements TLCallback
|
||||
'database' => 'MadelineProto', //will be created automatically
|
||||
'max_connections' => 10,
|
||||
'idle_timeout' => 60,
|
||||
'cache_ttl' => '+1 day', //keep records in memory after last read
|
||||
'cache_ttl' => '+5 minutes', //keep records in memory after last read
|
||||
]
|
||||
],
|
||||
'upload' => ['allow_automatic_upload' => true, 'part_size' => 512 * 1024, 'parallel_chunks' => 20], 'download' => ['report_broken_media' => true, 'part_size' => 1024 * 1024, 'parallel_chunks' => 20], 'pwr' => [
|
||||
|
Loading…
Reference in New Issue
Block a user