morethanwords / tweb

Telegram Web K, GPL v3
https://web.telegram.org/k/
GNU General Public License v3.0
1.86k stars 596 forks source link

[BUG] Cache size grows indefinitely #229

Open vehlwn opened 1 year ago

vehlwn commented 1 year ago

Describe the bug Telegram WebK 1.8.0 (324)

Disk cache size grows indefinitely. After around a month of usage, it reaches around 10 GiB and Telegram starts to work unstable. I have to clear the site data and login again to normalize its work. F12 console log is flooded with the following messages:

[525.008] [IDB-tweb] abort: [object Event] [AS]: set error: QuotaExceededError: The current transaction exceeded its quota limitations.

Screenshots Screenshot_20230503_111551 Screenshot_20230315_171659_com kiwibrowser browser

Desktop:

Smartphone:

Additional context I think it's a continuation of https://github.com/zhukov/webogram/issues/1691