lwindolf / liferea

Liferea (Linux Feed Reader), a news reader for GTK/GNOME
https://lzone.de/liferea
GNU General Public License v2.0
817 stars 130 forks source link

Old `WebKitCache` cache not cleaned #1267

Closed hasezoey closed 1 year ago

hasezoey commented 1 year ago

I have noticed that my liferea cache is getting bigger over time, after a quick look i noticed that ~/.cache/liferea/WebKitCache/Version\ 16/Blobs is the problem, it contains data dating back to when i first installed liferea, which is more than 1 year ago

some data:

$ du -xhd 1 . | sort -h
0       ./feeds
0       ./plugins
4.0K    ./CacheStorage
56K     ./favicons
1.1G    .
1.1G    ./WebKitCache

$ ll WebKitCache/Version\ 16/Blobs --sort=time | wc -l
3141

$ ll WebKitCache/Version\ 16/Blobs --sort=time | head -n 10
total 1039900
-rw-------   2 hasezoey hasezoey  117832 Jul  3 13:29 03A81177CC6AFEBD4A4A73DFBE388563ED0F0E0C
drwx------   1 hasezoey hasezoey  251040 Jul  3 13:29 .
-rw-------   2 hasezoey hasezoey   99802 Jul  3 13:29 C8E277D280627CDC7458EF71FCB56C5F48486F98
-rw-------   2 hasezoey hasezoey  177291 Jun 27 20:36 444F9C8CB4C1B94983B5E07D15DDA6367899F8E1
-rw-------   2 hasezoey hasezoey  176314 May 20 10:07 ACB9956CFF38FF5DBE32F25DBFE274C38B6F0068
-rw-------   2 hasezoey hasezoey 1626811 May 20 10:07 1F3F0DFF438460B10F96D765ADC9EB9A8D6445DA
-rw-------   2 hasezoey hasezoey   40934 May 20 10:07 BC3A31794B6342EC7AAAFC1CBC5CF9F38653FC6A
-rw-------   2 hasezoey hasezoey   51690 May 20 10:07 45E2FE4B94E30141B46F4B529A407F9FC89C78DF
-rw-------   2 hasezoey hasezoey  368116 May 20 10:07 46646CF4C4446C0CAA4449A5FA488CFC0BA2942E

$ ll WebKitCache/Version\ 16/Blobs --sort=time | tail -n 10
-rw-------  57 hasezoey hasezoey   26344 Sep 13  2021 B96192474F59DFABF0CC67906546C65636DEF47D
-rw-------  32 hasezoey hasezoey  147089 Sep 13  2021 B93EDE8E5EEF8B924589E88DB6000CD96E14A0C3
-rw------- 171 hasezoey hasezoey   25409 Sep 13  2021 3A777CA3B8E2F3A8CBEEEB267A86ACF680E05EBE
-rw-------  10 hasezoey hasezoey   25333 Sep 13  2021 65DC61BDC23C2C317556BD780B620D084804E7F0
-rw-------  36 hasezoey hasezoey   24444 Sep 13  2021 7F822DBF1A01BC02A2E097B82C69AE72CF8E8111
-rw-------   2 hasezoey hasezoey   51136 Sep 13  2021 0E407A0B3CCE555845012F949E6F69A32DBC5F1A
-rw-------   9 hasezoey hasezoey  177871 Sep 13  2021 949BAD9224E0C8FD9854E10A366255B8B9ECCD8E
-rw-------  74 hasezoey hasezoey   23559 Sep 13  2021 BCBD310382A2CFD6B0E2C20B9852942FE386E527
-rw-------   4 hasezoey hasezoey    8543 Sep 13  2021 638CDDE5A81CB9DCF6D7B8AC21B0992918E19688
drwx------   1 hasezoey hasezoey      32 Sep 13  2021 ..

currently installed liferea version Liferea 1.14.5 from pacman -S liferea (manjaro sources)

in case it matters, option Feeds -> Feed Cache Handling -> Default number of items per feed to save is set to 100 and all sources use Archive -> Default cache settings and there are 8 sources currently

lwindolf commented 1 year ago

Reproduced. Thanks for reporting this. This is a problem that needs fixing.