feature request

Luis Villa luis at tieguy.org
Sat Oct 21 01:24:04 EST 2006


On 10/20/06, Sam Ruby <rubys at intertwingly.net> wrote:
> Luis Villa wrote:
> > Hey, Sam, others:
> > I don't know if this is already solved by the venus branch's design
> > (not, from what I can tell) but it would be nice if there was a way to
> > specify a maximum cache size, or at least, a maximum per-feed cache
> > size. I just had to grep in my cache, and noticed that the cache is
> > now 1/2G, with some caches having entries over a year old, which is,
> > you know, a little silly ;)
>
> The caches are organized quite differently in the different code bases.
>
> With Planet 2.0, the data is stored per feed in mini-databases.
> Deleting items from a feed requires a small amount of code.
> Implementing a per-cache limit would be harder.
>
> With Venus, each entry is a separate file.  You want to delete entries
> that are over 90 days old, you can simply do (on Unix like systems):
>
>    find ~/planet/cache -mtime +90 | xargs rm
>
> With Venus implementing a per-feed limit would be somewhat harder.

Ah, but I can just throw that in my cron job whenever I move to Venus.
So that's simple enough. Thanks, Sam.

Lius


More information about the devel mailing list