Re: Design decision about the cache
Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]> Wed, 4 Feb 2004 12:41:06 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 04 February 2004 11:15, Bram Moolenaar wrote:
> Add a command to cleanup the cache
>
> The main drawback is that many people do not know this is to be
> done, and people who do know about it might want to run it often,
> upto after each download (if they know the chached files won't be
> used again). That would be annoying.
Useful anyway if you want to clean up before making a backup.
> This could be done when Aap is run for downloading and detects that
> some files in the cache are older than a certain age (e.g. a month).
> Since deleting a file doesn't take much time the user will hardly
> notice the extra cleanup action.
> The main drawback is that it is quite unpredictable how long a
> cached file is valid. Some files may never be used a second time,
> some remain valid for years. Since the cached files might not appear
In terms of complexity, I think this is the best solution - there's something
of a limit on the cache size, since how much can you download in a month,
anyway? And for those fairly rare files that remain valid for years, that's a
little extra downloading every now and then - though you could touch(1) them
every time they would have been downloaded, to keep them fresh and in-cache.
- --
pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <[email protected]>
The users that I support would double-click on a landmine to see what it did.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQFAINpSdqzuAf6io/4RAtAaAJ9BKBOUc2DGgdUS0eYUo/QVPYoUEgCdESfk
axpr07t+drcweK8MiXloTbo=
=AsvM
-----END PGP SIGNATURE-----
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn