[RFC][Icedtea-Web]: Enforce cache limit based on deployment.properties
Andrew Su
asu at redhat.com
Mon Mar 21 11:49:17 PDT 2011
----- Original Message -----
> On 03/20/2011 09:03 PM, Andrew Su wrote:
> > Hello,
> >
> > I have attached a patch which will properly drop the downloaded
> > files
> > into the appropriate directory (temp and perm) inside the cache
> > folder. Where temp will be deleted upon jvm shutdown if no other
> > instances of plugin or javaws is running.
> >
> > I have did some testing with some applets and all seems to work.
> > Another patch for updating itw-settings's cache control should be
> > soon since it currently doesn't check for running instances before
> > allowing for deleting cache (also need to be modified to work with
> > new directory structure).
> >
> > Any comments questions or concerns?
> >
>
> I havent looked at the patch in detail, but I am wondering what
> happens
> when the (perm) cache is full? What cache replacement policy does it
> follow?
When the cache is full it will place any files to be downloaded into the temp cache folder. In the event that the file already exist in the perm cache, if the file we are to use is newer, it will check if overwriting the old file will still put us within the limit set, if so proceed (This is how we're doing it right now minus the check for size). If it will go over the limit, file will be placed in temp. When trying to access a file, it first checks temp first as temp should in all cases contain the most updated version of the file.
Regards,
Andrew
>
> Thanks,
> Omair
More information about the distro-pkg-dev
mailing list