Please add option to clear cache files automatically
Bug #422198 reported by
Kartik Mistry
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gwibber |
Invalid
|
Undecided
|
Unassigned | ||
gwibber (Debian) |
Fix Released
|
Unknown
|
Bug Description
Pasting Debian bug here. See: http://
Package: gwibber
Version: 1.2.0+bzr355-2
Hi,
I have been using gwibber for a few weeks (I think more or less since you have
announced the packages on your blog).
I use it with my Twitter account, and follow the public timeline.
I have just noticed Gwibber cache folder contains more than 120,000 pictures!
$:~/.cache/
122489
$:~/.cache/
547M .
It seems these are thumbnails from the public timeline.
Maybe Gwibber could remove older pictures automatically? A config option with a
maximum age and/or total size should be perfect.
Thanks.
Changed in gwibber (Debian): | |
status: | Unknown → Confirmed |
Changed in gwibber (Debian): | |
status: | Confirmed → New |
Changed in gwibber (Debian): | |
status: | New → Confirmed |
Changed in gwibber: | |
status: | New → Confirmed |
Changed in gwibber (Debian): | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
This bug ended up causing me some disk corruption when I removed the 400K files in my cache (I've found ext4 can be flaky under high loads when you remove lots of little files)
Here is a patch that will cap the cache around 2 megs. For me this ends up being around 3.7 megs of real disk usage, and about 800 files.
The patch isn't perfect, and could use a configuration option to control the amount used. I'm treating this as more of a prototype.
It applies cleanly against the version of gwibber in Fedora 12 (gwibber- 1.2.0-3. 349bzr. fc12.noarch)