Try opening the cache entry after the visitor completes. You cannot open cache entries while visiting the cache. Save a list of entries keys (and cache client IDs) that you wish to doom, and then doom them after you finish visiting.
-Darin On 5/11/06, Michel Gutierrez <[EMAIL PROTECTED]> wrote:
Hi all, From my chrome application, I need to invalidate some cache entries of HTML files, in order to make those pages be reloaded next time they are displayed. I use my own instance of nsICacheVisitor to walk through cached entries, and I can locate the desired entries. However, the nsICacheVisitor API only provides me with a nsICacheEntryInfo interface, while the method to invalidate the entry is located in the nsICacheEntryDescriptor interface. The only way I see to get an instance of nsICacheEntryDescriptor is to use a method from interface nsICacheSession, openCacheEntry or asyncOpenCacheEntry. Is there a "global" cache session I can get somewhere ? If I create my own cache session with the createSession method of @mozilla.org/network/cache-service;1, and use it to call openCacheEntry or asyncOpenCacheEntry from my nsICacheVisitor instance, firefox enters into some kind of deadlock and freezes. Does anyone have a suggestion for invalidating cache entries ? Is it possible at all ? Thanks, /mig _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
_______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
