[rfc][icedtea-web] CacheUtil Clear Cache Small Fix
Omair Majid
omajid at redhat.com
Fri Aug 29 21:08:42 UTC 2014
* Jie Kang <jkang at redhat.com> [2014-08-29 17:03]:
> ----- Original Message -----
> > * Jie Kang <jkang at redhat.com> [2014-08-29 12:02]:
> > > This patch fixes this issue by also clearing the LRU when clearing the
> > > cache.
> >
> > That seems sensible.
> >
> > > I have also renamed the function to emptyCache in order to
> > > clash less with the function cleanCache (which removes files marked
> > > for delete, not all files) Thoughts?
> >
> > This one, I am less sure about. The CacheLRUWrapper also contains a
> > clear method, so at least the current convention is a little bit
> > consistent.
>
> True. Okay without the rename then?
Yup. Looks okay to me.
> > Also, I am a bit surprised that the patch does not touch any caller.
> > Does no code in icedtea-web actually call this method?
>
> Oh gosh, my bad. Working in a repo with multiple changes for different
> patches and I didn't diff any of the other files that changed thinking
> that this was the only one that was relevant. However without the
> rename it's just one file now :D
You might want to look into mq [1]. It's fantastic for working on multiple
patches at the same time, making sure that the repository is consistent.
Thanks,
Omair
[1] http://mercurial.selenic.com/wiki/MqExtension
--
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95 0056 F286 F14F 6648 4681
More information about the distro-pkg-dev
mailing list