Please add option to clear cache files automatically

Bug #422198 reported by Kartik Mistry
34
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://bugs.debian.org/544467 for more information.

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/gwibber/images$ find -type f | wc -l
122489
$:~/.cache/gwibber/images$ du -sh
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
Revision history for this message
Josh Bressers (josh-bress) wrote :

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)

Changed in gwibber:
status: New → Confirmed
Changed in gwibber (Debian):
status: Confirmed → Fix Released
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Gwibber has changed considerably since 1.2, it no longer caches image previews. It does however cache avatars, but the code path is rather different and the avatars are very small.

Changed in gwibber:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.