Decrease default cache_ttl

This commit is contained in:
Alexander Pankratov 2020-05-17 22:04:58 +03:00
parent fea71efc99
commit d0e57f2535
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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' => [