Hi,

here we go:

* I am using memory cache only (no disk)

* I commented out line
http://lxr.mozilla.org/seamonkey/source/netwerk/cache/src/nsMemoryCacheDevice.cpp#449
(so InUse entries wont be deleted).

* I've visited www.maemo.org.br/minimo (which has some local chrome
images), and then I go to google.com, for example. After that go to
"about:blank"

* In theory, there should be no InUse entries at that point, right ?

* So I call "DeleteCache" and it should delete everything once there
is nothing InUse .

* then I list entries in about:cache and it looks like

------- google logo (from google)
------- lots of chrome images (from maemo.org.br)

which were not deleted, but they should once they are not in use
anymore (I am on about:blank).

What does mark these images as InUse ?

thanks

On 7/4/07, Christian Biesinger <[EMAIL PROTECTED]> wrote:
> Antonio Gomes wrote:
> > In
> > http://lxr.mozilla.org/seamonkey/source/netwerk/cache/src/nsMemoryCacheDevice.cpp#432
> >
> > there is a IsInUse () method but it does not match with what I said above.
> >
> > I would like to know what would be the definition of the "InUse" state
> > of a CacheEntry ?
>
> I'm pretty sure the definition is "The cache entry is currently being
> read". Cache isn't involved anymore after the page DOM has been built.
>
> (except for images in the memory cache, which are stored quite
> differently. As far as I know "in use" is defined as "is being
> displayed" for them; pages in bfcache might count as being displayed.)
>


-- 
--Antonio Gomes
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to