Re: Cache design decision?
Bram Moolenaar <[email protected]> Fri, 12 Mar 2004 12:54:35 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Johan Svedberg wrote:
> I know it was discussed some time ago about what to do about the cache
> growing bigger and bigger, but was a design decision for an
> implementation ever made?
>
> Just started using A-A-P on a system with quota, therefor the interest.
The current choice is: Use a mix: Only store a file in the cache when
useful, add a way to manually cleanup the cache when desired and
automatically delete files when the cache uses more than a certain
amount of space.
I have implemented the part not to store files in the cache that are
downloaded directly. Mostly to avoid that people downloading the Vim
runtime files end up with lots of files in their cache that never get
used.
I have not implemented commands for clearing the cache yet. If you
don't care about downloading files again, you can simply delete all
files in the cache manually now and then. So long as Aap isn't running
at the same time.
Adding a command that clears the whole cache should not be very
difficult. Adding something to clear only files older than a certain
date is only a bit more work.
--
hundred-and-one symptoms of being an internet addict:
11. You find yourself typing "com" after every period when using a word
processor.com
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click