feature request

Sam Ruby rubys at intertwingly.net
Sat Oct 21 01:19:54 EST 2006


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.

- Sam Ruby


More information about the devel mailing list